Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend58.C
blob: cadfb3e1f430307f56090709db1c6ba35de90c0f [
file
] [
log
] [
blame
]
// PR c++/42328
template
<
typename
T
,
typename
U
>
class
freeList
{
public
:
void
foo
()
{};
};
class
bar
{};
class
baz
:
protected
freeList
<
bar
,
baz
>
{
template
<
typename
T
>
friend
void
freeList
<
T
,
baz
>::
foo
();
// { dg-error "friend" }
};
baz b
;