------- Comment #1 from giecrilj at stegny dot 2a dot pl 2010-08-27 18:06 ------- (In reply to comment #0) > Fails to compile, but should work: > > struct A { > char x[4]; > A():x("bug") { } > }; > > Error i get is: > > "main.cpp:3: error: array used as initializer" >
Why do you think it should work? For example, the following equivalent code is invalid as well: char x [4] ("bug"); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43453