diff --git a/test/cfoa/insert_tests.cpp b/test/cfoa/insert_tests.cpp index 229f0324..3350c691 100644 --- a/test/cfoa/insert_tests.cpp +++ b/test/cfoa/insert_tests.cpp @@ -156,7 +156,10 @@ namespace { BOOST_WORKAROUND(BOOST_GCC_VERSION, < 50500) // some versions of old gcc have trouble eliding copies here // https://godbolt.org/z/Ebo6TbvaG -#else +#elif BOOST_WORKAROUND(BOOST_GCC_VERSION, >= 40900) && \ + BOOST_WORKAROUND(BOOST_GCC_VERSION, < 50000) + // seemingly same problem, though the snippet above does not reveal it +#else BOOST_TEST_EQ(raii::copy_constructor, 0u); #endif BOOST_TEST_EQ(raii::copy_assignment, 0u);