From eba48932f0904e49c773cf2b8981c4df26100636 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sun, 17 Dec 2017 02:18:11 +0200 Subject: [PATCH] Skip test_empty_ref on g++ 7 in C++17 mode due to compiler bug --- test/function_test.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/function_test.cpp b/test/function_test.cpp index 02a60ce..cce4365 100644 --- a/test/function_test.cpp +++ b/test/function_test.cpp @@ -629,6 +629,17 @@ test_ref() } } +#if BOOST_WORKAROUND(BOOST_GCC, >= 70000 && BOOST_GCC < 80000) && __cplusplus >= 201700 + +// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81311 +#pragma message("Skipping test_empty_ref on g++ 7 -std=c++17") + +static void test_empty_ref() +{ +} + +#else + static void dummy() {} static void test_empty_ref() @@ -652,6 +663,8 @@ static void test_empty_ref() } } +#endif + static void test_exception() {