Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.jason/tempparse.C

raw
1 // { dg-do assemble }
2 /*
3 PRMS Id: 3631
4 Bug is: g++ mangles template class names in a way that it won't accept,
5 and then tries to feed them to itself.
6 */
7
8 template<class T>
9 struct A {
10 A();
11 };
12
13 template<class T>
14 struct B : A<T> {
15 B();
16 }; // { dg-bogus "" } B<C<char>>
17
18 template<class T>
19 struct C {
20 C();
21 };
22
23 template<class T>
24 struct D {
25 D();
26 B<C<T> > p_f;
27 };
28
29 typedef D<char> Dummy;