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" }
};