2 // { dg-do compile { target c++11 } }
3 // { dg-options -Wno-pedantic }
8 S () : a("bob") {} // { dg-error "initializer for flexible array member" }
13 char b[] = "bob"; // { dg-error "initializer for flexible array member" }
15 // the presence of this ctor definition elicits the error above
16 // without it the flexible array initializer would be ignored
17 // and so (unfortunately) not diagnosed
19 T (int) : b("bob") {} // { dg-error "initializer for flexible array member" }