Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: schema input type member default init error on clang 14#310

Merged
wravery merged 1 commit intomicrosoft:mainmicrosoft/cppgraphqlgen:mainfrom
wravery:mainwravery/cppgraphqlgen:mainCopy head branch name to clipboard
Sep 9, 2024
Merged

fix: schema input type member default init error on clang 14#310
wravery merged 1 commit intomicrosoft:mainmicrosoft/cppgraphqlgen:mainfrom
wravery:mainwravery/cppgraphqlgen:mainCopy head branch name to clipboard

Conversation

@wravery
Copy link
Contributor

@wravery wravery commented Sep 9, 2024

The same issue exists in the schema input types as in the client input types, although I never actually saw that with any of the schema samples.

The error I saw once with clang 14 on an Ubuntu 22.04 derived image (Pop OS!, specifically) had to do with not having a constructor for nested input type members available in the header when compiling the default member initializers using {} at the end of the member declaration. Since we've already pulled the default constructor for the type itself into the source file to fix ODR violations, it makes sense to move the default member initialization into the constructor's initializer list.

@wravery wravery merged commit 681b0e1 into microsoft:main Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.