-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Head does not compile in MSVC 16.10.1 with /std:c++latest /Zc:__cplusplus #2351
Comments
The godbolt example compiles successfully. Was it supposed to demonstrate an error? |
I ran into the same problem. |
Fixed in 3423d75. That piece of code is going away completely soon so we don't need the workaround, esp. broken one =). |
Oh well, it took me ages to find out why gcc would fail to compile all of the time ... |
Sorry, my code example should show the error, but not on Godbolt. In addition, I have been fooled by Visual Studio: |
MSVC 16.10.1 fails to compile current head with
/std:c++latest /Zc:__cplusplus
(->#define __cplusplus 201705L
)but fails not with
/std:c++latest /Zc:__cplusplus-
(->#define __cplusplus 199711L
).Code sample see: https://godbolt.org/z/e7zehe6fG
Compilation fails with message
The text was updated successfully, but these errors were encountered: