Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failing in MSVC 2017 #86443

Closed
SlugFiller opened this issue Dec 22, 2023 · 1 comment · Fixed by #86507
Closed

Build failing in MSVC 2017 #86443

SlugFiller opened this issue Dec 22, 2023 · 1 comment · Fixed by #86507

Comments

@SlugFiller
Copy link
Contributor

Tested versions

Introduced in #83452

System information

Windows, MSVC 2017

Issue description

This union is causing an issue:

	union RenderPassClearValue {
		Color color = {};
		struct {
			float depth;
			uint32_t stencil;
		};
	};

Since Color does not have a default constructor, it results in the following message:

servers/rendering/rendering_device_driver.h(538): note: 'RenderingDeviceDriver::RenderPassClearValue::RenderPassClearValue(void)': function was implicitly deleted because 'RenderingDeviceDriver::RenderPassClearValue' has a variant data member 'RenderingDeviceDriver::RenderPassClearValue::color' with a non-trivial default constructor

Steps to reproduce

  1. Install MSVC 2017
  2. Clone master
  3. Build using SCons

Minimal reproduction project (MRP)

N/A

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants