From 491c32cbd9ba0cc4b36f7576afcaf6a0a37b0633 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 5 Oct 2022 21:12:38 -0700 Subject: [PATCH] Workaround gcc bug 103879 --- 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 ca22be42..6989c32d 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -789,7 +789,7 @@ basic_format_parse_context::do_check_arg_id(int id) { template FMT_CONSTEXPR void basic_format_parse_context::check_dynamic_spec(int arg_id) { - if (detail::is_constant_evaluated()) { + if (detail::is_constant_evaluated() && FMT_GCC_VERSION >= 1200) { using context = detail::compile_parse_context; static_cast(this)->check_dynamic_spec(arg_id); }