// PR c++/92774 // { dg-do compile { target c++20 } } #include template struct X { }; template bool operator==(const X&, const X&) { return true; } template bool operator<(const X&, const X&) { return true; } struct Y { int a; X c; // { dg-error "no match" } auto operator <=>(Y const&) const = default; }; void f() { auto x = Y() < Y(); // { dg-error "deleted" } }