OSDN Git Service

PR c++/13239
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / opt / static1.C
1 // PR c++/6073
2 // This testcase ICEd because finish_struct_bits changed
3 // A's and const A's TYPE_MODE from QI to BLK, but did
4 // not change a's DECL_MODE because its mode was not
5 // TYPE_MAIN_VARIANT.
6
7 struct A
8 {
9   static const A a;
10   ~A ();
11 };
12
13 void bar (A x);
14 void foo ();
15
16 void
17 foo ()
18 {
19   bar (A::a);
20 }