Daily bump.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp2a / spaceship-rewrite5.C
blob460f6332938fe26c2d630fe1b2e05e2798b7b601
1 // { dg-do compile { target c++11 } }
3 template<typename T>
4 struct A {
5   A() {}
7   template<typename U>
8     A(const A<U>&) {}
10   bool operator==(const A&) const { return true; }
13 A<const int> a;
14 A<int> b;
15 auto c = (a == b); // { dg-error "ambiguous, even though the second is reversed" "" { target c++20 } }