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
2017-06-14 Paolo Carlini <paolo.carlini@oracle.com>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend27.C
blob
6317da577d028e5bc3a8624c9f44ca0dd2b40e8d
1
// PR c++/15265
2
3
enum Relation {equalOp};
4
template<typename B>
5
class A {
6
public:
7
static
8
bool Relop(const A&, const A&, Relation);
9
10
friend
11
bool operator==(const A& a1, const A& a2) {
12
return Relop(a1, a2, equalOp);
13
}
14
B* b;
15
};
16
17
int main() {
18
A<int> a; a == a;
19
return 0;
20
}
21
22