From 505b3ae66f1b1d9d4a88b96f47f55b1b984b5322 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 16 Mar 2018 12:02:19 -0400 Subject: [PATCH] Workaround GCC bug 67371 (#682) --- include/fmt/core.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 6a954cca..6aa26660 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -49,9 +49,10 @@ #endif // Check if relaxed c++14 constexpr is supported. +// GCC doesn't allow throw in constexpr until version 6 (bug 67371). #ifndef FMT_USE_CONSTEXPR # define FMT_USE_CONSTEXPR \ - (FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_GCC_VERSION >= 500 || \ + (FMT_HAS_FEATURE(cxx_relaxed_constexpr) || FMT_GCC_VERSION >= 600 || \ FMT_MSC_VER >= 1910) #endif #if FMT_USE_CONSTEXPR