// This should continue to work. // { dg-do compile { target c++20 } } template struct A { template bool operator==(const A&); }; int main() { A a1; A a2; return a1 == a2; // { dg-error "ambiguous, even though the second is reversed" } }