diff --git a/test/failed_constexpr_test.cpp b/test/failed_constexpr_test.cpp index e9ccab5..ae2f604 100644 --- a/test/failed_constexpr_test.cpp +++ b/test/failed_constexpr_test.cpp @@ -33,6 +33,12 @@ BOOST_STATIC_ASSERT( !ec3.failed() ); BOOST_STATIC_ASSERT( ec3? false: true ); BOOST_STATIC_ASSERT( !ec3 ); +#if defined(__GNUC__) && __GNUC__ == 7 && __cplusplus == 201703L + +// 'cat_' is not a constant expression + +#else + constexpr error_condition en1( 1, system_category() ); BOOST_STATIC_ASSERT( en1.failed() ); @@ -51,6 +57,8 @@ BOOST_STATIC_ASSERT( !en3.failed() ); BOOST_STATIC_ASSERT( en3? false: true ); BOOST_STATIC_ASSERT( !en3 ); +#endif + int main() { }