Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend50.C
blob: 93c429ab161c0812c7a807ca3cba7d9a40dadaf8 [
file
] [
log
] [
blame
]
// PR c++/34399
template
<int>
struct
X
{
void
foo
();
};
struct
Y
{
template
<
long
N
>
friend
void
X
<
N
>::
X
::
foo
();
// { dg-error "declared as friend" }
};