Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
friend10.C
blob: fa2eccbea741940688ae67d8b76571c0b1d9ec34 [
file
] [
log
] [
blame
]
// PR c++/18681
// Bug: The friend declaration in A failed to give C::D access to A::B
// as specified in DR 45.
class
A
{
struct
B
;
friend
class
C
;
};
class
C
{
struct
D
{
void
f
();
};
};
void
C
::
D
::
f
()
{
A
::
B
*
p
;
}