repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
friend10.C
blob
fa2eccbea741940688ae67d8b76571c0b1d9ec34
1
// PR c++/18681
2
// Bug: The friend declaration in A failed to give C::D access to A::B
3
// as specified in DR 45.
4
5
class A
6
{
7
struct B;
8
friend class C;
9
};
10
11
class C
12
{
13
struct D
14
{
15
void f();
16
};
17
};
18
19
void C::D::f()
20
{
21
A::B* p;
22
}