When compiling the attached file foo.C using the flag -Wmissing-braces (part of -Wall) then the warning
foo.C:3: warning: missing braces around initializer is printed even though no braces are needed around the char array. -- Summary: Warnings are issued when initializing struct members with "strings" Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gcc at magfr dot user dot lysator dot liu dot se CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20175