From 41539c29f342e67abb925b946acab6d55d331b36 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 22 Jan 2025 11:12:41 -0800 Subject: [PATCH] Workaround a bug in gcc 6 (#4318) --- include/fmt/base.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 5d8150435a80..1a6ccf24bbf9 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -96,9 +96,9 @@ // Detect C++14 relaxed constexpr. #ifdef FMT_USE_CONSTEXPR // Use the provided definition. -#elif FMT_GCC_VERSION >= 600 && FMT_CPLUSPLUS >= 201402L -// GCC only allows throw in constexpr since version 6: -// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67371. +#elif FMT_GCC_VERSION >= 702 && FMT_CPLUSPLUS >= 201402L +// GCC only allows constexpr member functions in non-literal types since 7.2: +// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66297. # define FMT_USE_CONSTEXPR 1 #elif FMT_ICC_VERSION # define FMT_USE_CONSTEXPR 0 // https://github.com/fmtlib/fmt/issues/1628