Debian Codegraph @

gcc/testsuite/g++.dg/parse/too-many-tmpl-args1.C

raw
1 // PR c++/9229
2 // Origin: Wolfgang Bangerth <[email protected]>
3 // { dg-do compile }
4
5 template <typename T> class A // { dg-message "" }
6 {
7 struct B;
8 template <typename U> friend typename A<U,void>::B foo(); // { dg-error "" }
9 };
10
11 template class A<int>;