summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp0x/vt-34399.C
blob: 542fae586ca8a3336952b8b493d09a0a7524e94c (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-options "-std=c++0x" }
template<int...> struct A
{
  void foo();
};

struct B
{
  template<int N> friend void A<N>::A::foo(); // { dg-error "declared as friend" }
};