// { dg-options "-std=gnu++20" } // { dg-do compile { target c++20 } } #include struct Str { consteval operator std::string_view() const { return ""; } operator std::string_view() = delete; }; // PR libstdc++/108024 static_assert( std::is_constructible_v, const Str&> ); static_assert( std::is_convertible_v> ); constinit std::format_string<> s = Str();