8sa1-gcc/gcc/testsuite/g++.old-deja/g++.jason/tempsub.C
Jeff Law 921e5a0eb4 Initial revision
From-SVN: r14840
1997-08-19 01:34:40 -06:00

29 lines
291 B
C

// 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;