public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27019]  New: [4.1/4.2 regression] ICE with designated initializers
@ 2006-04-04  9:17 reichelt at gcc dot gnu dot org
  2006-04-04  9:29 ` [Bug c++/27019] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-04  9:17 UTC (permalink / raw)
  To: gcc-bugs

The following invalid code snippet causes an ICE since GCC 4.1.0:

======================
struct A
{
    int i;
    int z[1];
};

A a = { z:{} };
======================

bug.cc:7: sorry, unimplemented: non-trivial designated initializers not
supported
bug.cc:7: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]

Before we got:

bug.cc:7: sorry, unimplemented: non-trivial labeled initializers
bug.cc:7: error: initializer for scalar variable requires one element


-- 
           Summary: [4.1/4.2 regression] ICE with designated initializers
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, monitored
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

* [Bug c++/27019] [4.1/4.2 regression] ICE with designated initializers
  2006-04-04  9:17 [Bug c++/27019] New: [4.1/4.2 regression] ICE with designated initializers reichelt at gcc dot gnu dot org
@ 2006-04-04  9:29 ` pinskia at gcc dot gnu dot org
  2006-04-16 19:16 ` mmitchel at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-04  9:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-04-04 09:29 -------
We have a null type here, it really should have been error_mark_node.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Severity|normal                      |minor
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-04 09:29:50
               date|                            |
   Target Milestone|---                         |4.1.1


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


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

* [Bug c++/27019] [4.1/4.2 regression] ICE with designated initializers
  2006-04-04  9:17 [Bug c++/27019] New: [4.1/4.2 regression] ICE with designated initializers reichelt at gcc dot gnu dot org
  2006-04-04  9:29 ` [Bug c++/27019] " pinskia at gcc dot gnu dot org
@ 2006-04-16 19:16 ` mmitchel at gcc dot gnu dot org
  2006-05-25  2:39 ` mmitchel at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-04-16 19:16 UTC (permalink / raw)
  To: gcc-bugs



-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


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


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

* [Bug c++/27019] [4.1/4.2 regression] ICE with designated initializers
  2006-04-04  9:17 [Bug c++/27019] New: [4.1/4.2 regression] ICE with designated initializers reichelt at gcc dot gnu dot org
  2006-04-04  9:29 ` [Bug c++/27019] " pinskia at gcc dot gnu dot org
  2006-04-16 19:16 ` mmitchel at gcc dot gnu dot org
@ 2006-05-25  2:39 ` mmitchel at gcc dot gnu dot org
  2006-06-22 16:40 ` sje at cup dot hp dot com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-25  2:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from mmitchel at gcc dot gnu dot org  2006-05-25 02:34 -------
Will not be fixed in 4.1.1; adjust target milestone to 4.1.2.


-- 

mmitchel at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.1.1                       |4.1.2


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


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

* [Bug c++/27019] [4.1/4.2 regression] ICE with designated initializers
  2006-04-04  9:17 [Bug c++/27019] New: [4.1/4.2 regression] ICE with designated initializers reichelt at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-05-25  2:39 ` mmitchel at gcc dot gnu dot org
@ 2006-06-22 16:40 ` sje at cup dot hp dot com
  2006-06-23 21:58 ` sje at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: sje at cup dot hp dot com @ 2006-06-22 16:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from sje at cup dot hp dot com  2006-06-22 16:39 -------
Proposed patch at http://gcc.gnu.org/ml/gcc-patches/2006-06/msg01235.html


-- 

sje at cup dot hp dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at cup dot hp dot com


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


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

* [Bug c++/27019] [4.1/4.2 regression] ICE with designated initializers
  2006-04-04  9:17 [Bug c++/27019] New: [4.1/4.2 regression] ICE with designated initializers reichelt at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-06-22 16:40 ` sje at cup dot hp dot com
@ 2006-06-23 21:58 ` sje at gcc dot gnu dot org
  2006-06-24  1:53 ` [Bug c++/27019] [4.1 " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: sje at gcc dot gnu dot org @ 2006-06-23 21:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from sje at gcc dot gnu dot org  2006-06-23 21:53 -------
Subject: Bug 27019

Author: sje
Date: Fri Jun 23 21:53:36 2006
New Revision: 114952

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=114952
Log:
        PR c++/27019
        * typeck2.c (process_init_constructor_array): Set ce->value on errors.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/typeck2.c


-- 


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


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

* [Bug c++/27019] [4.1 regression] ICE with designated initializers
  2006-04-04  9:17 [Bug c++/27019] New: [4.1/4.2 regression] ICE with designated initializers reichelt at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2006-06-23 21:58 ` sje at gcc dot gnu dot org
@ 2006-06-24  1:53 ` pinskia at gcc dot gnu dot org
  2006-07-07 15:15 ` sje at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-06-24  1:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-06-24 01:52 -------
Fixed at least on the mainline.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.1/4.2 regression] ICE    |[4.1 regression] ICE with
                   |with designated initializers|designated initializers


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


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

* [Bug c++/27019] [4.1 regression] ICE with designated initializers
  2006-04-04  9:17 [Bug c++/27019] New: [4.1/4.2 regression] ICE with designated initializers reichelt at gcc dot gnu dot org
                   ` (5 preceding siblings ...)
  2006-06-24  1:53 ` [Bug c++/27019] [4.1 " pinskia at gcc dot gnu dot org
@ 2006-07-07 15:15 ` sje at gcc dot gnu dot org
  2006-07-10 21:05 ` sje at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: sje at gcc dot gnu dot org @ 2006-07-07 15:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from sje at gcc dot gnu dot org  2006-07-07 15:15 -------
Subject: Bug 27019

Author: sje
Date: Fri Jul  7 15:15:00 2006
New Revision: 115260

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115260
Log:
        PR c++/27019
        * g++.dg/ext/pr27019.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/ext/pr27019.C
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27019] [4.1 regression] ICE with designated initializers
  2006-04-04  9:17 [Bug c++/27019] New: [4.1/4.2 regression] ICE with designated initializers reichelt at gcc dot gnu dot org
                   ` (6 preceding siblings ...)
  2006-07-07 15:15 ` sje at gcc dot gnu dot org
@ 2006-07-10 21:05 ` sje at gcc dot gnu dot org
  2006-07-10 21:06 ` sje at gcc dot gnu dot org
  2006-07-11  9:20 ` reichelt at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: sje at gcc dot gnu dot org @ 2006-07-10 21:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from sje at gcc dot gnu dot org  2006-07-10 21:05 -------
Subject: Bug 27019

Author: sje
Date: Mon Jul 10 21:05:00 2006
New Revision: 115316

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115316
Log:
        PR c++/27019
        * g++.dg/ext/pr27019.C: New.

Added:
    branches/gcc-4_1-branch/gcc/testsuite/g++.dg/ext/pr27019.C
Modified:
    branches/gcc-4_1-branch/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug c++/27019] [4.1 regression] ICE with designated initializers
  2006-04-04  9:17 [Bug c++/27019] New: [4.1/4.2 regression] ICE with designated initializers reichelt at gcc dot gnu dot org
                   ` (7 preceding siblings ...)
  2006-07-10 21:05 ` sje at gcc dot gnu dot org
@ 2006-07-10 21:06 ` sje at gcc dot gnu dot org
  2006-07-11  9:20 ` reichelt at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: sje at gcc dot gnu dot org @ 2006-07-10 21:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from sje at gcc dot gnu dot org  2006-07-10 21:05 -------
Subject: Bug 27019

Author: sje
Date: Mon Jul 10 21:05:45 2006
New Revision: 115317

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115317
Log:
        PR c++/27019
        * typeck2.c (process_init_constructor_array): Set ce->value on errors.

Modified:
    branches/gcc-4_1-branch/gcc/cp/ChangeLog
    branches/gcc-4_1-branch/gcc/cp/typeck2.c


-- 


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


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

* [Bug c++/27019] [4.1 regression] ICE with designated initializers
  2006-04-04  9:17 [Bug c++/27019] New: [4.1/4.2 regression] ICE with designated initializers reichelt at gcc dot gnu dot org
                   ` (8 preceding siblings ...)
  2006-07-10 21:06 ` sje at gcc dot gnu dot org
@ 2006-07-11  9:20 ` reichelt at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-11  9:20 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from reichelt at gcc dot gnu dot org  2006-07-11 09:20 -------
Also fixed on the 4.1 branch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2006-07-11  9:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-04  9:17 [Bug c++/27019] New: [4.1/4.2 regression] ICE with designated initializers reichelt at gcc dot gnu dot org
2006-04-04  9:29 ` [Bug c++/27019] " pinskia at gcc dot gnu dot org
2006-04-16 19:16 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:39 ` mmitchel at gcc dot gnu dot org
2006-06-22 16:40 ` sje at cup dot hp dot com
2006-06-23 21:58 ` sje at gcc dot gnu dot org
2006-06-24  1:53 ` [Bug c++/27019] [4.1 " pinskia at gcc dot gnu dot org
2006-07-07 15:15 ` sje at gcc dot gnu dot org
2006-07-10 21:05 ` sje at gcc dot gnu dot org
2006-07-10 21:06 ` sje at gcc dot gnu dot org
2006-07-11  9:20 ` reichelt 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).