2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / parse / too-many-tmpl-args1.C
blob30c29521e9f4e97c2016e15a6705792cae5c010c
1 // PR c++/9229
2 // Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
3 // { dg-do compile }
5 template <typename T> class A
6 {                                                             // { dg-error "" }
7     struct B;
8     template <typename U> friend typename A<U,void>::B foo(); // { dg-error "" }
9 };
11 template class A<int>;