Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
friend43.C
blob: edbed8420d0bf4c304b48ee87071c2391e1cf66a [
file
] [
log
] [
blame
]
// PR c++/28111
// { dg-do compile }
template
<typename>
void
foo
();
template
<
typename
T
>
struct
A
{
friend
void
foo
<>(
typename
T
::
X
);
// { dg-error "not a class" }
};
A
<int>
a
;