| 1 |
// PR c++/6037 |
| 2 |
// This testcase ICEd because start_enum expected pushtag to insert |
| 3 |
// the tag always into current binding level. |
| 4 |
|
| 5 |
struct A |
| 6 |
{ |
| 7 |
~A () { } |
| 8 |
}; |
| 9 |
|
| 10 |
struct B |
| 11 |
{ |
| 12 |
void foo () |
| 13 |
{ |
| 14 |
switch (0) { default: ; } |
| 15 |
A a; |
| 16 |
enum C { }; |
| 17 |
(void) a; |
| 18 |
} |
| 19 |
}; |