xref: /minix3/external/bsd/llvm/dist/clang/test/SemaTemplate/crash-8204126.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s
2*f4a2713aSLionel Sambuc struct A
3*f4a2713aSLionel Sambuc {
foo(T)4*f4a2713aSLionel Sambuc   template<int> template<typename T> friend void foo(T) {} // expected-error{{extraneous template parameter list}}
barA5*f4a2713aSLionel Sambuc   void bar() { foo(0); } // expected-error{{use of undeclared identifier 'foo'}}
6*f4a2713aSLionel Sambuc };
7