(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
cpp2a/
spaceship-rewrite1.C
// This should continue to work.
// { dg-do compile { target c++20 } }

template<class T>
struct A {
  template<class U>
  bool operator==(const A<U>&);
};

int main()
{
  A<int> a1;
  A<void> a2;
  return a1 == a2; // { dg-error "ambiguous, even though the second is reversed" }
}