Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
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" }
};