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
This commit is contained in:
Tim Blechmann 2021-09-22 22:41:53 +08:00
parent 2742611cad
commit a1183f65fb

View File

@ -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.