Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend54.C
blob: ead7a72fcc95cb3c8b1bef966cf741c9bcaf33ab [
file
] [
log
] [
blame
]
// PR c++/56642
template
<
class
T
>
struct
A
;
template
<
class
T
>
A
<
T
>
f
(
T
*)
{
return
A
<
T
>();
}
template
<
class
T
>
struct
A
{
friend
A f
<
T
>(
T
*);
};
int
main
()
{
int
*
p
=
0
;
f
(
p
);
}