| 1 |
/* ICE on unnamed field with incomplete enum type: PR 40032. */ |
| 2 |
/* { dg-do compile } */ |
| 3 |
/* { dg-options "" } */ |
| 4 |
struct A |
| 5 |
{ |
| 6 |
enum E : 8; /* { dg-warning "narrower than values of its type" } */ |
| 7 |
/* { dg-error "has incomplete type" "incomplete" { target *-*-* } .-1 } */ |
| 8 |
}; |