// { dg-do compile { target c++20 } } template struct A { friend bool operator==(const A&, const A&) requires true = default; }; int main() { A() == A(); }