Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / desig5.C
blobed2762917580370657e65af225ad378c2cde270e
1 // PR c++/87324
2 // { dg-do compile { target c++11 } }
3 // { dg-options "-Wno-pedantic" }
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" }