Skip to content

Commit

Permalink
Workaround gcc bug 103879
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Oct 6, 2022
1 parent 662adf4 commit 491c32c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ basic_format_parse_context<Char, ErrorHandler>::do_check_arg_id(int id) {
template <typename Char, typename ErrorHandler>
FMT_CONSTEXPR void
basic_format_parse_context<Char, ErrorHandler>::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<Char, ErrorHandler>;
static_cast<context*>(this)->check_dynamic_spec(arg_id);
}
Expand Down

0 comments on commit 491c32c

Please sign in to comment.