From a8d1fc4d84c12cf0eb89c219e7c863722cfb91f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 12 Dec 2016 22:41:39 +0100 Subject: [PATCH] Math: work around constexpr issues on old GCCs in Frustum test. Travis CI GCC 4.7 and Android NDK GCC 4.9 fail to compile that. GCC 6 works, not sure about GCC 5. --- src/Magnum/Math/Test/FrustumTest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Math/Test/FrustumTest.cpp b/src/Magnum/Math/Test/FrustumTest.cpp index 5237acff0..0dcfcd604 100644 --- a/src/Magnum/Math/Test/FrustumTest.cpp +++ b/src/Magnum/Math/Test/FrustumTest.cpp @@ -261,7 +261,10 @@ void FrustumTest::data() { /* Using default-constructed to verify that the planes are in correct order */ constexpr Frustum a; - constexpr Vector4 right = a.planes()[1]; + #if !defined(__GNUC__) || __GNUC__*100 + __GNUC_MINOR__ >= 500 + constexpr + #endif + Vector4 right = a.planes()[1]; CORRADE_COMPARE(right, (Vector4{-1.0f, 0.0f, 0.0f, 1.0f})); constexpr Vector4 bottom = a[2];