public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20209] New: [3.3/3.4/4.0 Regression] Missing warnings for "aggregate has a partly bracketed initializer"
@ 2005-02-25 19:49 pinskia at gcc dot gnu dot org
  2005-02-25 19:50 ` [Bug c++/20209] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-25 19:49 UTC (permalink / raw)
  To: gcc-bugs

The following should have warnings:
struct S { char a[6]; int b[2]; };

S S0 = { { "hello" }, { 1, 2 } };
S S1 = { { "hello" }, 1, 2 }; // { dg-warning "" }
S S2 = { "hello", { 1, 2 } };
S S3 = { "hello", 1, 2 }; // { dg-warning "" }

-- 
           Summary: [3.3/3.4/4.0 Regression] Missing warnings for "aggregate
                    has a partly bracketed initializer"
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20209


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

end of thread, other threads:[~2005-09-27 16:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-25 19:49 [Bug c++/20209] New: [3.3/3.4/4.0 Regression] Missing warnings for "aggregate has a partly bracketed initializer" pinskia at gcc dot gnu dot org
2005-02-25 19:50 ` [Bug c++/20209] " pinskia at gcc dot gnu dot org
2005-02-25 19:50 ` pinskia at gcc dot gnu dot org
2005-02-25 22:51 ` jakub at gcc dot gnu dot org
2005-03-01  1:22 ` [Bug c++/20209] [3.3/3.4/4.0/4.1 " pinskia at gcc dot gnu dot org
2005-03-08  2:32 ` pinskia at gcc dot gnu dot org
2005-05-19 17:50 ` mmitchel at gcc dot gnu dot org
2005-07-22 21:18 ` [Bug c++/20209] [3.4/4.0/4.1 " pinskia at gcc dot gnu dot org
2005-09-27 16:25 ` mmitchel 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).