summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/friend50.C
blob: 93c429ab161c0812c7a807ca3cba7d9a40dadaf8 (plain)
1
2
3
4
5
6
7
8
9
// 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" }
};