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

* [Bug c++/20209] [3.3/3.4/4.0 Regression] Missing warnings for "aggregate has a partly bracketed initializer"
  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
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-25 19:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-25 15:04 -------
Obviously I compiled with "-W -Wall".
I wonder how this regression was missed for so long.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |3.3.3 3.4.0 4.0.0
      Known to work|                            |3.2.3


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


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

* [Bug c++/20209] [3.3/3.4/4.0 Regression] Missing warnings for "aggregate has a partly bracketed initializer"
  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 ` pinskia at gcc dot gnu dot org
  2005-02-25 19:50 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-25 19:50 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |3.4.4


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


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

* [Bug c++/20209] [3.3/3.4/4.0 Regression] Missing warnings for "aggregate has a partly bracketed initializer"
  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
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: jakub at gcc dot gnu dot org @ 2005-02-25 22:51 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jakub at gcc dot gnu dot org  2005-02-25 16:38 -------
Yeah, caused by addition of reshape_init.
Bigger testcase:

// PR c++/20209
// { dg-do compile }
// { dg-options "-Wmissing-braces" }

struct S { char a[6]; int b[2]; };
struct T { int a; int b[2]; };
struct U { int a; T b; };
struct V { char a[6]; int b[2]; int c; };
struct W { int a; int b[2]; int c; };
struct X { int a; W b; int c; };

S a = { { "hello" }, { 1, 2 } };
S b = { { "hello" }, 1, 2 };    // { dg-warning "" }
S c = { "hello", { 1, 2 } };
S d = { "hello", 1, 2 };        // { dg-warning "" }
T e = { 1, { 2, 3 } };
T f = { 1, 2, 3 };              // { dg-warning "" }
U g = { 1, { 2, { 3, 4 } } };
U h = { 1, 2, { 3, 4 } };       // { dg-warning "" }
U i = { 1, 2, 3, 4 };           // { dg-warning "" }
V j = { { "hello" }, { 1, 2 }, 3 };
V k = { { "hello" }, 1, 2, 3 }; // { dg-warning "" }
V l = { "hello", { 1, 2 }, 3 };
V m = { "hello", 1, 2, 3 };     // { dg-warning "" }
W n = { 1, { 2, 3 }, 4 };
W o = { 1, 2, 3, 4 };           // { dg-warning "" }
X p = { 1, { 2, { 3, 4 }, 5 }, 6 };
X q = { 1, 2, { 3, 4 }, 5, 6 }; // { dg-warning "" }
X r = { 1, 2, 3, 4, 5, 6 };     // { dg-warning "" }


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mark at codesourcery dot com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-25 16:38:03
               date|                            |


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


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

* [Bug c++/20209] [3.3/3.4/4.0/4.1 Regression] Missing warnings for "aggregate has a partly bracketed initializer"
  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
                   ` (2 preceding siblings ...)
  2005-02-25 22:51 ` jakub at gcc dot gnu dot org
@ 2005-03-01  1:22 ` pinskia at gcc dot gnu dot org
  2005-03-08  2:32 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-01  1:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-01 01:22 -------
: Search converges between 2002-10-15-trunk (#105) and 2002-10-16-trunk (#106).

-- 


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


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

* [Bug c++/20209] [3.3/3.4/4.0/4.1 Regression] Missing warnings for "aggregate has a partly bracketed initializer"
  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
                   ` (3 preceding siblings ...)
  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
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-08  2:32 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-08 02:32 -------
: Search converges between 2002-10-15-trunk (#105) and 2002-10-16-trunk (#106).

-- 


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


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

* [Bug c++/20209] [3.3/3.4/4.0/4.1 Regression] Missing warnings for "aggregate has a partly bracketed initializer"
  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
                   ` (4 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:50 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.4                       |3.4.5


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


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

* [Bug c++/20209] [3.4/4.0/4.1 Regression] Missing warnings for "aggregate has a partly bracketed initializer"
  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
                   ` (5 preceding siblings ...)
  2005-05-19 17:50 ` mmitchel at gcc dot gnu dot org
@ 2005-07-22 21:18 ` pinskia at gcc dot gnu dot org
  2005-09-27 16:25 ` mmitchel at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-22 21:18 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-07-22 21:13 -------
Moving to 4.0.2 pre Mark.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|3.4.5                       |4.0.2


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


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

* [Bug c++/20209] [3.4/4.0/4.1 Regression] Missing warnings for "aggregate has a partly bracketed initializer"
  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
                   ` (6 preceding siblings ...)
  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
  7 siblings, 0 replies; 9+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:25 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |4.0.3


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).