// PR c++/99831 // { dg-do compile { target c++20 } } // { dg-options "--param ggc-min-heapsize=0 --param ggc-min-expand=0" } template struct S { constexpr S(const char (&str)[N]) : value{} { } char value[N]; }; template struct string { constexpr bool operator==(const string &) const = default; }; template void operator+(string) { char value[1]; S{value}; } static_assert(string<"a">{} == string<"a">{});