summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/tempsub.C
blob: 2a68add7ca53d219c0e5683a774cc7207e8d6b3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// { dg-do assemble  }
// Distillation of crash1.C problem (PR 3633)

template<class P>
class A
{
  P p;
};

template<class Q>
class B
{
  A<Q> a;			// bogus error - temp parm name propagating
};

template<class R>
class C
{
  B<R> b;
};

template<class S>
class D
{
  S s;
};

C< D<int> > c;