This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20175] New: Warnings are issued when initializing struct members with "strings"
- From: "gcc at magfr dot user dot lysator dot liu dot se" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Feb 2005 18:13:12 -0000
- Subject: [Bug c++/20175] New: Warnings are issued when initializing struct members with "strings"
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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