Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend53.C
blob: 6cbbb2b099371c1be08423da7d6fb774913e8e18 [
file
] [
log
] [
blame
]
// PR c++/53403
template
<
typename
T
>
class
Foo
{
typedef
void
type
;
template
<
typename
U
>
friend
void
f
();
public
:
Foo
()
{}
};
template
class
Foo
<void>
;
template
<
typename
T
>
void
f
()
{
typedef
Foo
<void>
::
type type
;
}
int
main
()
{
f
<void>
();
}