Skip to content

Commit

Permalink
Fix an ICE on clang <= 15
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jan 12, 2024
1 parent f1924d3 commit 7e58af4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions include/fmt/base.h
Original file line number Diff line number Diff line change
Expand Up @@ -1487,8 +1487,14 @@ constexpr unsigned long long make_descriptor() {
: is_unpacked_bit | NUM_ARGS;
}

// This type is intentionally undefined, only used for errors
template <typename T, typename Char> struct type_is_unformattable_for;
// This type is intentionally undefined, only used for errors.
template <typename T, typename Char>
#if FMT_CLANG_VERSION && FMT_CLANG_VERSION <= 1500
// https://github.com/fmtlib/fmt/issues/3796
struct type_is_unformattable_for {};
#else
struct type_is_unformattable_for;
#endif

template <bool PACKED, typename Context, typename T, FMT_ENABLE_IF(PACKED)>
FMT_CONSTEXPR auto make_arg(T& val) -> value<Context> {
Expand Down

0 comments on commit 7e58af4

Please sign in to comment.