2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / tempparse.C
blob1756a0c1c2479176c9c592e87ede1aad97338739
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 */
8 template<class T>
9 struct A {
10   A();
13 template<class T>
14 struct B : A<T> {
15   B();
16 };                              // { dg-bogus "" } B<C<char>>
18 template<class T>
19 struct C {
20   C();
23 template<class T>
24 struct D {
25   D();
26   B<C<T> > p_f;
29 typedef D<char> Dummy;