From a1183f65fbcc8a97ef1f99572cb28a65149437aa Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Wed, 22 Sep 2021 22:41:53 +0800 Subject: [PATCH] fmt: disable consteval with clang clang (at least appleclang 12.5/13) ICEs when consteval is enabled. reduced test case: https://bugs.llvm.org/show_bug.cgi?id=51938 --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 41748c24..ff000551 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -247,7 +247,7 @@ #endif #ifndef FMT_CONSTEVAL -# if ((FMT_GCC_VERSION >= 1000 || FMT_CLANG_VERSION >= 1101) && \ +# if ((FMT_GCC_VERSION >= 1000) && \ __cplusplus > 201703L) || \ (defined(__cpp_consteval) && \ !FMT_MSC_VER) // consteval is broken in MSVC.