-
Notifications
You must be signed in to change notification settings - Fork 88
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
Fails to compile with MSVC 19.15 #48
Comments
Probably a compiler bug. Someone already reported a similar problem. |
I can confirm this. I'm receiving the same error with Visual Studio Community 2017 15.8.1 |
mrkline
pushed a commit
to mrkline/variant
that referenced
this issue
Aug 28, 2018
The latest Visual Studio 2017 update (version 15.8, MSVC 19.15) claims to support C++14 constexpr, but it does not. Compiling with MPARK_CPP14_CONSTEXPR defined emits a litany of errors, e.g., 5>c:\...\variant\include\mpark\variant.hpp(386): error C2131: expression did not evaluate to a constant 5>c:\...\variant\include\mpark\variant.hpp(386): note: failure was caused by a read of a variable outside its lifetime 5>c:\...\variant\include\mpark\variant.hpp(386): note: see usage of '<traits_0>' 5>c:\...\variant\include\mpark\variant.hpp(1205): note: see reference to class template instantiation 'mpark::detail::traits<Redacted, Lol>' being compiled 5>c:\...\variant\include\mpark\variant.hpp(1504): note: see reference to class template instantiation 'mpark::detail::impl<Redacted, Lol>' being compiled Disable MPARK_CPP14_CONSTEXPR for this and previous versions of MSVC, with the hope that this problem is addressed in the near future. Fixes mpark#48
mgieseki
added a commit
to mgieseki/dvisvgm
that referenced
this issue
Aug 30, 2018
Version 15.8 of Visual Studio 2017 introduced a compiler bug that prevents compiling mpark::variant (mpark/variant#48).
Fixed the root cause in 657110d |
So... not a compiler bug? |
Read the commit message. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Microsoft managed to break the successful compilation of the variant sources again. The latest update of MS Visual Studio 2017 (version 15.8, MSVC 19.15) produces messages like these:
The text was updated successfully, but these errors were encountered: