summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.dg/parse/non-templ1.C
blob: 07bb3793a6daa6d7f11388a11916ecab44d382a9 (plain)
1
2
3
4
5
6
7
8
9
10
// PR c++/9228
// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
// { dg-do compile }

struct A
{
    struct B { B(int); };
};
 
template <typename T> typename A<T>::B foo() { return 1; } // { dg-error "" }
OpenPOWER on IntegriCloud