[scope_exit] (Boost >= 1.65) VS 2015 internal compiler error in lambda
Hi, starting from Boost version 1.65 and using VS 2015 Update 3 (MSVC 19.00) the following code raises an internal compiler error: fatal error C1001: An internal error has occurred in the compiler. (compiler file 'msc1.cpp', line 1468). With earlier Boost versions it compiles fine. Tobias -- Sent from: http://boost.2283326.n4.nabble.com/Boost-Dev-f2600599.html
I figured out that the problem is in
Sorry, the code is missing in the above post: -- Sent from: http://boost.2283326.n4.nabble.com/Boost-Dev-f2600599.html
And again, here's the code: int main() { auto check_property = []() { int test = 0; BOOST_SCOPE_EXIT(test) { test = 42; }BOOST_SCOPE_EXIT_END }; return 0; } -- Sent from: http://boost.2283326.n4.nabble.com/Boost-Dev-f2600599.html
I've added a ticket https://svn.boost.org/trac10/ticket/13393#ticket -- Sent from: http://boost.2283326.n4.nabble.com/Boost-Dev-f2600599.html
On Fri, Jan 12, 2018 at 11:55 AM, Tobias Loew via Boost
I've added a ticket https://svn.boost.org/trac10/ticket/13393#ticket
I don't think Microsoft is tracking our Trac.. -- Olaf
I will also send a bug report to MS, but I do not think they will do any more fixes for VS 2015. I made a pull-request https://github.com/boostorg/typeof/pull/11 in boost/typeof that reenables pre 1.65 behaviour for MSVC <= 1900 -- Sent from: http://boost.2283326.n4.nabble.com/Boost-Dev-f2600599.html
Tobias Loew wrote:
I made a pull-request https://github.com/boostorg/typeof/pull/11 in boost/typeof that reenables pre 1.65 behaviour for MSVC <= 1900
It will be very helpful if you couple this fix with a test that demonstrates the breakage (that is, a test that fails before the fix and passes after the fix.)
participants (3)
-
Olaf van der Spek
-
Peter Dimov
-
Tobias Loew