diff --git a/src/Magnum/Math/Test/Matrix4Test.cpp b/src/Magnum/Math/Test/Matrix4Test.cpp index 380b35a9d..04aa9d193 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); }