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
2010-03-17 Tobias Burnus <burnus@net-b.de>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
friend14.C
1
// PR c++/35109
2
3
struct C;
4
void f() {
5
struct A {
6
friend struct B;
7
friend struct C;
8
void g()
9
{
10
B *b; // { dg-error "not declared" }
11
C* c; // OK, finds ::C
12
}
13
};
14
C *c; // OK, finds ::C
15
struct B {};
16
B *b; // OK, now it isn't hidden
17
}