repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp2a
/
spaceship-rewrite5.C
blob
460f6332938fe26c2d630fe1b2e05e2798b7b601
1
// { dg-do compile { target c++11 } }
2
3
template<typename T>
4
struct A {
5
A() {}
6
7
template<typename U>
8
A(const A<U>&) {}
9
10
bool operator==(const A&) const { return true; }
11
};
12
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 } }