summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/too-many-tmpl-args1.C
blob: 4d98e754639a3a85712a36baf9cf9e7d919c2415 (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/9229
// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
// { dg-do compile }

template <typename T> class A                                 // { dg-error "" }
{
    struct B;
    template <typename U> friend typename A<U,void>::B foo(); // { dg-error "" }
};

template class A<int>;