blob: 142229475cf99f17cb8bb7dad260954f810ff2db (
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
29
30
31
32
33
34
35
36
37
38
|
// PR c++/12316
// Origin: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
// { dg-do compile }
// { dg-options "--param ggc-min-expand=0 --param ggc-min-heapsize=0" }
inline void FOO() {}
template<typename> struct A
{
A() {}
~A() throw() {}
};
template<typename> struct B
{
static void foo();
static void bar() { foo(); }
};
struct C {};
template<typename> struct D : C
{
D() {}
~D() { B<void>::bar(); }
};
template<typename> struct E : D<void>
{
static void baz() {}
E(A<void>) { baz(); }
};
void BAR()
{
new E<void>(A<void>());
}
|