diff --git a/src/Magnum/Math/Test/PackingBatchTest.cpp b/src/Magnum/Math/Test/PackingBatchTest.cpp index 96fe5d06f..2344fa6a1 100644 --- a/src/Magnum/Math/Test/PackingBatchTest.cpp +++ b/src/Magnum/Math/Test/PackingBatchTest.cpp @@ -336,7 +336,9 @@ template void PackingBatchTest::castUnsigned() { {{13, 255}, {}} }; - constexpr Vector2 expectedFloat[] { + /* GCC 4.8 doesn't like constexpr here (cannot initialize aggregate of type + ‘const Vector2 [3]’ with a compound literal), wtf */ + const Vector2 expectedFloat[] { {0.0f, 89.0f}, {149.0f, 22.0f}, {13.0f, 255.0f} @@ -374,7 +376,9 @@ template void PackingBatchTest::castSigned() { {{13, 127}, {}} }; - constexpr Vector2 expectedFloat[] { + /* GCC 4.8 doesn't like constexpr here (cannot initialize aggregate of type + ‘const Vector2 [3]’ with a compound literal), wtf */ + const Vector2 expectedFloat[] { {0.0f, -89.0f}, {-119.0f, 22.0f}, {13.0f, 127.0f}