summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/crash65.C
blob: 4d49ecf3145ab0ed540a8465b57b529c3132d5d9 (plain)
1
2
3
4
5
6
7
// PR c++/29732

struct A
{
  template<int> template<typename T> friend void foo(T) {} // { dg-error "parameter" }
  void bar() { foo(0); } // { dg-error "foo" }
};