From 57472886764ff71ad45338c6538649f7a8fa3d0e Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Mon, 27 Aug 2018 13:07:34 +0200 Subject: [PATCH] Disable a bonus unit-test which is broken with gcc 4.7 --- test/meta.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/meta.cpp b/test/meta.cpp index a6a67b85c..ea9607fe7 100644 --- a/test/meta.cpp +++ b/test/meta.cpp @@ -102,7 +102,13 @@ EIGEN_DECLARE_TEST(meta) } STATIC_CHECK(( !internal::is_convertible::value )); + #if (!EIGEN_COMP_GNUC_STRICT) || (EIGEN_GNUC_AT_LEAST(4,8)) + // GCC prior to 4.8 fails to compile this test: + // error: cannot allocate an object of abstract type 'MyInterface' + // In other word, it does not obey SFINAE. + // Nevertheless, we don't really care about supporting abstract type as scalar type! STATIC_CHECK(( !internal::is_convertible::value )); + #endif STATIC_CHECK(( internal::is_convertible::value )); { int i;