Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
lookup
/
friend23.C
blob: f7b26c9e3ae37d629cc97e08c1bc9a4aab2f05e7 [
file
] [
log
] [
blame
]
template
<
class
Derived
>
struct
base
{
friend
void
bar
(
Derived
&
d
)
{
d
.
bar
();
// access in inline friend of friend, ok?
}
};
class
derived
:
base
<derived>
{
friend
class
base
<derived>
;
void
bar
()
{}
};
int
main
()
{
derived d
;
bar
(
d
);
}