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); }