From 36e3b2c6ae5da1625dc8c4301406e252ccc80412 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 10 Jan 2023 05:14:36 +0200 Subject: [PATCH] Work around Clang 3.5..3.8 failure in constexpr_test2 --- test/constexpr_test2.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/constexpr_test2.cpp b/test/constexpr_test2.cpp index 08d0ea7..c75eb4b 100644 --- a/test/constexpr_test2.cpp +++ b/test/constexpr_test2.cpp @@ -19,8 +19,17 @@ struct X X const& f() { +#if defined(BOOST_CLANG_VERSION) && BOOST_CLANG_VERSION < 30900 + + BOOST_STATIC_CONSTEXPR X x = {}; + return x; + +#else + BOOST_STATIC_CONSTEXPR X x; return x; + +#endif } #endif