From e4459fa39a33aa06901543105bc39bd17a2ee294 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/enforce-compile-string-test.cc b/test/enforce-compile-string-test.cc index 79a5cf8d28483..bcf826ba261d4 100644 --- a/test/enforce-compile-string-test.cc +++ b/test/enforce-compile-string-test.cc @@ -25,7 +25,9 @@ void test_format_api() { (void)fmt::format(FMT_STRING("{}"), 42); (void)fmt::format(FMT_STRING(L"{}"), 42); +#if !FMT_GCC // 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);