From f2a5a0f27e20020d17c82cee790775145115c0a3 Mon Sep 17 00:00:00 2001 From: Walter Gray Date: Sat, 12 Dec 2020 17:43:26 -0800 Subject: [PATCH] restore ifdef guarding GCC bug --- test/enforce-compile-string-test.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/enforce-compile-string-test.cc b/test/enforce-compile-string-test.cc index 79a5cf8d..5573f59c 100644 --- a/test/enforce-compile-string-test.cc +++ b/test/enforce-compile-string-test.cc @@ -25,7 +25,10 @@ void test_format_api() { (void)fmt::format(FMT_STRING("{}"), 42); (void)fmt::format(FMT_STRING(L"{}"), 42); +#if !FMT_GCC_VERSION // Currently will not compile: See + // https://github.com/fmtlib/fmt/issues/2039 (void)fmt::format(FMT_STRING("noop")); +#endif (void)fmt::to_string(42); (void)fmt::to_wstring(42);