public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20175] New: Warnings are issued when initializing struct members with "strings"
@ 2005-02-23 20:58 gcc at magfr dot user dot lysator dot liu dot se
  2005-02-23 21:03 ` [Bug c++/20175] " gcc at magfr dot user dot lysator dot liu dot se
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: gcc at magfr dot user dot lysator dot liu dot se @ 2005-02-23 20:58 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2005-02-27 18:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-23 20:58 [Bug c++/20175] New: Warnings are issued when initializing struct members with "strings" gcc at magfr dot user dot lysator dot liu dot se
2005-02-23 21:03 ` [Bug c++/20175] " gcc at magfr dot user dot lysator dot liu dot se
2005-02-23 22:21 ` [Bug c++/20175] [3.4/4.0 Regression] " pinskia at gcc dot gnu dot org
2005-02-24 15:46 ` jakub at gcc dot gnu dot org
2005-02-24 15:59 ` jakub at gcc dot gnu dot org
2005-02-25  1:49 ` cvs-commit at gcc dot gnu dot org
2005-02-25  2:04 ` [Bug c++/20175] [3.4 " pinskia at gcc dot gnu dot org
2005-02-25 19:47 ` gcc at magfr dot user dot lysator dot liu dot se
2005-02-25 19:49 ` pinskia at gcc dot gnu dot org
2005-02-28  1:36 ` cvs-commit at gcc dot gnu dot org
2005-02-28  1:42 ` jakub at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).