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

16 lines
214 B
C

// Bug: instantiation of D() corrupts declaration of basis[].
// Build don't link:
struct B { };
template <int t>
struct D : public B
{
D() : B () { }
};
B const * basis[] =
{
new D<0>,
new D<1>,
};