| 1 |
// PR c++/87324 |
| 2 |
// { dg-do compile { target c++11 } } |
| 3 |
// { dg-options "-Wno-pedantic" } |
| 4 |
|
| 5 |
struct { |
| 6 |
struct { |
| 7 |
double a; |
| 8 |
struct { |
| 9 |
short b; |
| 10 |
}; |
| 11 |
}; |
| 12 |
int c; |
| 13 |
} d{.a = 7, .a = 8.09}; // { dg-error "designator used multiple times in the same initializer list" } |