OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR c++/9335
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend27.C
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