From 69e370c4c760345790571df2b2c95c3e47fc8b82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 21 Nov 2019 18:37:36 +0100 Subject: [PATCH] GCC 4.8, happy to see you're still around, causing problems. --- src/Magnum/Math/Test/PackingBatchTest.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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}