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

Omit the _raw_default_instance_ declaration when using DLL linkage. #17314

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

copybara-service[bot]
Copy link

Omit the _raw_default_instance_ declaration when using DLL linkage.
In that mode we might not be able to make a constexpr pointer to the default
instance. Omitting the declaration will only turn off an optimization, but the
code will still be correct.

Fixes #17303

In that mode we might not be able to make a `constexpr` pointer to the default
instance. Omitting the declaration will only turn off an optimization, but the
code will still be correct.

Fixes #17303

PiperOrigin-RevId: 649160060
@copybara-service copybara-service bot merged commit 79c55cb into main Jul 3, 2024
@copybara-service copybara-service bot deleted the test_648754789 branch July 3, 2024 19:19
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.

[C++/27.x] error: &_Variant_default_instance_is not a constant expression
1 participant