☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
template35.C
☽
☼
gcc/testsuite/g++.old-deja/g++.jason/template35.C
code
plain
raw
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
};