aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/tempsub.C
blob: 4b69d888d36e6f1da7c396a7b71e03dea77e0a9c (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
// Distillation of crash1.C problem (PR 3633)
// Build don't link:

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;