public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/38698] New: [4.4 regression] ICE initializing union with initializer list
@ 2009-01-02 14:34 reichelt at gcc dot gnu dot org
2009-01-02 14:35 ` [Bug c++/38698] " reichelt at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-01-02 14:34 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE on the trunk:
=================
union U
{
int i, j;
};
U u({1,2});
=================
bug.cc:6: internal compiler error: in process_init_constructor_union, at
cp/typeck2.c:1101
Please submit a full bug report, [etc.]
--
Summary: [4.4 regression] ICE initializing union with initializer
list
Product: gcc
Version: 4.4.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=38698
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/38698] [4.4 regression] ICE initializing union with initializer list
2009-01-02 14:34 [Bug c++/38698] New: [4.4 regression] ICE initializing union with initializer list reichelt at gcc dot gnu dot org
@ 2009-01-02 14:35 ` reichelt at gcc dot gnu dot org
2009-01-02 15:37 ` paolo dot carlini at oracle dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-01-02 14:35 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.4.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38698
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/38698] [4.4 regression] ICE initializing union with initializer list
2009-01-02 14:34 [Bug c++/38698] New: [4.4 regression] ICE initializing union with initializer list reichelt at gcc dot gnu dot org
2009-01-02 14:35 ` [Bug c++/38698] " reichelt at gcc dot gnu dot org
@ 2009-01-02 15:37 ` paolo dot carlini at oracle dot com
2009-01-02 16:35 ` jason at gcc dot gnu dot org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-01-02 15:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from paolo dot carlini at oracle dot com 2009-01-02 15:31 -------
And again...
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38698
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/38698] [4.4 regression] ICE initializing union with initializer list
2009-01-02 14:34 [Bug c++/38698] New: [4.4 regression] ICE initializing union with initializer list reichelt at gcc dot gnu dot org
2009-01-02 14:35 ` [Bug c++/38698] " reichelt at gcc dot gnu dot org
2009-01-02 15:37 ` paolo dot carlini at oracle dot com
@ 2009-01-02 16:35 ` jason at gcc dot gnu dot org
2009-01-03 0:22 ` jason at gcc dot gnu dot org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-02 16:35 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-01-02 16:33:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38698
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/38698] [4.4 regression] ICE initializing union with initializer list
2009-01-02 14:34 [Bug c++/38698] New: [4.4 regression] ICE initializing union with initializer list reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-01-02 16:35 ` jason at gcc dot gnu dot org
@ 2009-01-03 0:22 ` jason at gcc dot gnu dot org
2009-01-03 1:04 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-03 0:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jason at gcc dot gnu dot org 2009-01-03 00:21 -------
Subject: Bug 38698
Author: jason
Date: Sat Jan 3 00:19:55 2009
New Revision: 143024
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143024
Log:
PR c++/38698
* typeck2.c (process_init_constructor_union): Handle excess
initializers.
(process_init_constructor_record): Likewise.
PR c++/38684
* typeck2.c (digest_init_r): Don't use process_init_constructor
for non-aggregate classes.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/initlist11.C
trunk/gcc/testsuite/g++.dg/cpp0x/initlist12.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38698
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/38698] [4.4 regression] ICE initializing union with initializer list
2009-01-02 14:34 [Bug c++/38698] New: [4.4 regression] ICE initializing union with initializer list reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-01-03 0:22 ` jason at gcc dot gnu dot org
@ 2009-01-03 1:04 ` jakub at gcc dot gnu dot org
2009-01-04 21:37 ` reichelt at gcc dot gnu dot org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-01-03 1:04 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2009-01-03 00:57 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38698
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/38698] [4.4 regression] ICE initializing union with initializer list
2009-01-02 14:34 [Bug c++/38698] New: [4.4 regression] ICE initializing union with initializer list reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-01-03 1:04 ` jakub at gcc dot gnu dot org
@ 2009-01-04 21:37 ` reichelt at gcc dot gnu dot org
2009-01-05 11:31 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-01-04 21:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from reichelt at gcc dot gnu dot org 2009-01-04 21:37 -------
Jason, the fix is unfortunately incomplete, because the following testcase
still crashes:
=================
union U {};
U u({ 1 });
=================
bug.cc:3: internal compiler error: in process_init_constructor_union, at
cp/typeck2.c:1150
Please submit a full bug report, [etc.]
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38698
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/38698] [4.4 regression] ICE initializing union with initializer list
2009-01-02 14:34 [Bug c++/38698] New: [4.4 regression] ICE initializing union with initializer list reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-01-04 21:37 ` reichelt at gcc dot gnu dot org
@ 2009-01-05 11:31 ` rguenth at gcc dot gnu dot org
2009-01-06 3:27 ` jason at gcc dot gnu dot org
2009-01-06 13:50 ` jakub at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-01-05 11:31 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38698
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/38698] [4.4 regression] ICE initializing union with initializer list
2009-01-02 14:34 [Bug c++/38698] New: [4.4 regression] ICE initializing union with initializer list reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-01-05 11:31 ` rguenth at gcc dot gnu dot org
@ 2009-01-06 3:27 ` jason at gcc dot gnu dot org
2009-01-06 13:50 ` jakub at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-01-06 3:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jason at gcc dot gnu dot org 2009-01-06 03:27 -------
Subject: Bug 38698
Author: jason
Date: Tue Jan 6 03:27:39 2009
New Revision: 143111
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=143111
Log:
PR c++/38698
* typeck2.c (process_init_constructor_union): Handle union with
no fields.
* mangle.c (write_expression): Remove mangling for zero-operand
casts.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/mangle.c
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/cpp0x/initlist12.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38698
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/38698] [4.4 regression] ICE initializing union with initializer list
2009-01-02 14:34 [Bug c++/38698] New: [4.4 regression] ICE initializing union with initializer list reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2009-01-06 3:27 ` jason at gcc dot gnu dot org
@ 2009-01-06 13:50 ` jakub at gcc dot gnu dot org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-01-06 13:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2009-01-06 13:50 -------
Fixed.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38698
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-01-06 13:50 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-02 14:34 [Bug c++/38698] New: [4.4 regression] ICE initializing union with initializer list reichelt at gcc dot gnu dot org
2009-01-02 14:35 ` [Bug c++/38698] " reichelt at gcc dot gnu dot org
2009-01-02 15:37 ` paolo dot carlini at oracle dot com
2009-01-02 16:35 ` jason at gcc dot gnu dot org
2009-01-03 0:22 ` jason at gcc dot gnu dot org
2009-01-03 1:04 ` jakub at gcc dot gnu dot org
2009-01-04 21:37 ` reichelt at gcc dot gnu dot org
2009-01-05 11:31 ` rguenth at gcc dot gnu dot org
2009-01-06 3:27 ` jason at gcc dot gnu dot org
2009-01-06 13:50 ` 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).