OSDN Git Service

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