OSDN Git Service

Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.jason / template35.C
1 // { dg-do assemble  }
2 // Bug: instantiation of D() corrupts declaration of basis[].
3
4 struct B { };
5 template <int t>
6 struct D : public B 
7 {
8     D() : B () { }
9 };
10
11 B const * basis[] =
12 {
13     new D<0>,
14     new D<1>,
15 };