From dd3ce93888ada70074d63d72c5998d950fa2eba6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 11 May 2021 14:25:05 +0200 Subject: [PATCH] Math: MSVC 2015, you ICEd. --- src/Magnum/Math/Test/Matrix4Test.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Magnum/Math/Test/Matrix4Test.cpp b/src/Magnum/Math/Test/Matrix4Test.cpp index 380b35a9de..04aa9d1938 100644 --- a/src/Magnum/Math/Test/Matrix4Test.cpp +++ b/src/Magnum/Math/Test/Matrix4Test.cpp @@ -312,13 +312,19 @@ void Matrix4Test::constructFromDifferentSize() { {0.0f, 0.0f, 0.0f, 0.0f}}; constexpr Matrix4 identity1{a, 0.5f}; - constexpr Matrix4 identity2{IdentityInit, a, 0.5f}; + #ifndef CORRADE_MSVC2015_COMPATIBILITY /* It ICEs, haha */ + constexpr + #endif + Matrix4 identity2{IdentityInit, a, 0.5f}; CORRADE_COMPARE(identity1, expectedIdentity); CORRADE_COMPARE(identity2, expectedIdentity); CORRADE_COMPARE((Matrix4{a, 0.5f}), expectedIdentity); CORRADE_COMPARE((Matrix4{IdentityInit, a, 0.5f}), expectedIdentity); - constexpr Matrix4 zero{ZeroInit, a}; + #ifndef CORRADE_MSVC2015_COMPATIBILITY /* It ICEs, haha */ + constexpr + #endif + Matrix4 zero{ZeroInit, a}; CORRADE_COMPARE(zero, expectedZero); CORRADE_COMPARE((Matrix4{ZeroInit, a}), expectedZero); }