diff --git a/include/fmt/base.h b/include/fmt/base.h index 84b175c3..21444176 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2662,7 +2662,7 @@ template struct fstring { template ::value)> FMT_CONSTEVAL FMT_ALWAYS_INLINE fstring(const S& s) : str(s) { - FMT_CONSTEXPR auto sv = string_view(S()); + auto sv = string_view(str); if (FMT_USE_CONSTEVAL) detail::parse_format_string(sv, checker(sv, arg_pack())); #ifdef FMT_ENFORCE_COMPILE_STRING