public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788
@ 2006-04-23 14:49 timj at gtk dot org
2006-04-23 15:47 ` [Bug c++/27270] [4.1/4.2 Regression]ICE " rguenth at gcc dot gnu dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: timj at gtk dot org @ 2006-04-23 14:49 UTC (permalink / raw)
To: gcc-bugs
with a recent gcc snapshot on i386:
c++ (GCC) 4.2.0 20060325 (experimental)
the following tst program program:
template<typename Entry>
struct Array {
Entry *array[32];
Array () :
array ( (Entry*[1]) { 0, 0 } )
{}
};
Array<void*> a;
compiled with:
c++ -Wall arrayinit.cc
produces:
arrayinit.cc: In constructor 'Array<Entry>::Array() [with Entry = void*]':
arrayinit.cc:8: instantiated from here
arrayinit.cc:5: internal compiler error: in process_init_constructor_array, at
cp/typeck2.c:788
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
--
Summary: ICE in process_init_constructor_array, at
cp/typeck2.c:788
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: timj at gtk dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27270
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/27270] [4.1/4.2 Regression]ICE in process_init_constructor_array, at cp/typeck2.c:788
2006-04-23 14:49 [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788 timj at gtk dot org
@ 2006-04-23 15:47 ` rguenth at gcc dot gnu dot org
2006-05-14 22:29 ` mmitchel at gcc dot gnu dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2006-04-23 15:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from rguenth at gcc dot gnu dot org 2006-04-23 15:47 -------
Confirmed. We hit
#1 0x080b0ffc in digest_init (type=<value optimized out>, init=0xb7da6ed0)
at /space/rguenther/src/svn/gcc/gcc/cp/typeck2.c:788
788 gcc_assert (VEC_length (constructor_elt, v) <= len);
Also happens on the 4.1 branch. 4.0.3 tells us
y.c: In constructor 'Array<Entry>::Array() [with Entry = void*]':
y.c:8: instantiated from here
y.c:5: error: excess elements in aggregate initializer
y.c:5: error: conversion from 'void** [1]' to non-scalar type 'void** [32]'
requested
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |ice-on-invalid-code
Known to fail| |4.1.0 4.2.0
Known to work| |4.0.3
Last reconfirmed|0000-00-00 00:00:00 |2006-04-23 15:47:41
date| |
Summary|ICE in |[4.1/4.2 Regression]ICE in
|process_init_constructor_arr|process_init_constructor_arr
|ay, at cp/typeck2.c:788 |ay, at cp/typeck2.c:788
Target Milestone|--- |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27270
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/27270] [4.1/4.2 Regression]ICE in process_init_constructor_array, at cp/typeck2.c:788
2006-04-23 14:49 [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788 timj at gtk dot org
2006-04-23 15:47 ` [Bug c++/27270] [4.1/4.2 Regression]ICE " rguenth at gcc dot gnu dot org
@ 2006-05-14 22:29 ` mmitchel at gcc dot gnu dot org
2006-05-25 2:40 ` mmitchel at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-14 22:29 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=27270
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/27270] [4.1/4.2 Regression]ICE in process_init_constructor_array, at cp/typeck2.c:788
2006-04-23 14:49 [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788 timj at gtk dot org
2006-04-23 15:47 ` [Bug c++/27270] [4.1/4.2 Regression]ICE " rguenth at gcc dot gnu dot org
2006-05-14 22:29 ` mmitchel at gcc dot gnu dot org
@ 2006-05-25 2:40 ` mmitchel at gcc dot gnu dot org
2006-08-12 21:36 ` janis at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-05-25 2:40 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=27270
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/27270] [4.1/4.2 Regression]ICE in process_init_constructor_array, at cp/typeck2.c:788
2006-04-23 14:49 [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788 timj at gtk dot org
` (2 preceding siblings ...)
2006-05-25 2:40 ` mmitchel at gcc dot gnu dot org
@ 2006-08-12 21:36 ` janis at gcc dot gnu dot org
2006-10-16 23:34 ` [Bug c++/27270] [4.1/4.2 Regression] ICE " mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-08-12 21:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from janis at gcc dot gnu dot org 2006-08-12 21:36 -------
A regression hunt on powerpc-linux identified the following patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=102182
r102182 | giovannibajo | 2005-07-20 01:19:59 +0000 (Wed, 20 Jul 2005)
--
janis at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |giovannibajo at gcc dot gnu
| |dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27270
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/27270] [4.1/4.2 Regression] ICE in process_init_constructor_array, at cp/typeck2.c:788
2006-04-23 14:49 [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788 timj at gtk dot org
` (3 preceding siblings ...)
2006-08-12 21:36 ` janis at gcc dot gnu dot org
@ 2006-10-16 23:34 ` mmitchel at gcc dot gnu dot org
2006-10-17 2:01 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-16 23:34 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27270
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/27270] [4.1/4.2 Regression] ICE in process_init_constructor_array, at cp/typeck2.c:788
2006-04-23 14:49 [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788 timj at gtk dot org
` (4 preceding siblings ...)
2006-10-16 23:34 ` [Bug c++/27270] [4.1/4.2 Regression] ICE " mmitchel at gcc dot gnu dot org
@ 2006-10-17 2:01 ` mmitchel at gcc dot gnu dot org
2006-10-17 2:05 ` [Bug c++/27270] [4.1 " mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-17 2:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mmitchel at gcc dot gnu dot org 2006-10-17 02:01 -------
Subject: Bug 27270
Author: mmitchel
Date: Tue Oct 17 02:01:27 2006
New Revision: 117814
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117814
Log:
PR c++/27270
* typeck2.c (process_init_constructor_array): Reword comment.
* pt.c (tsubst_copy_and_built): Call reshape_init before calling
digest_init.
PR c++/27270
* g++.dg/ext/complit8.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/ext/complit8.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27270
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/27270] [4.1 Regression] ICE in process_init_constructor_array, at cp/typeck2.c:788
2006-04-23 14:49 [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788 timj at gtk dot org
` (5 preceding siblings ...)
2006-10-17 2:01 ` mmitchel at gcc dot gnu dot org
@ 2006-10-17 2:05 ` mmitchel at gcc dot gnu dot org
2006-10-17 17:30 ` shinwell at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-17 2:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mmitchel at gcc dot gnu dot org 2006-10-17 02:04 -------
Fixed in 4.2.0.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.1/4.2 Regression] ICE in |[4.1 Regression] ICE in
|process_init_constructor_arr|process_init_constructor_arr
|ay, at cp/typeck2.c:788 |ay, at cp/typeck2.c:788
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27270
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/27270] [4.1 Regression] ICE in process_init_constructor_array, at cp/typeck2.c:788
2006-04-23 14:49 [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788 timj at gtk dot org
` (6 preceding siblings ...)
2006-10-17 2:05 ` [Bug c++/27270] [4.1 " mmitchel at gcc dot gnu dot org
@ 2006-10-17 17:30 ` shinwell at gcc dot gnu dot org
2006-10-17 22:26 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: shinwell at gcc dot gnu dot org @ 2006-10-17 17:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from shinwell at gcc dot gnu dot org 2006-10-17 17:30 -------
*** Bug 28248 has been marked as a duplicate of this bug. ***
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27270
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/27270] [4.1 Regression] ICE in process_init_constructor_array, at cp/typeck2.c:788
2006-04-23 14:49 [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788 timj at gtk dot org
` (7 preceding siblings ...)
2006-10-17 17:30 ` shinwell at gcc dot gnu dot org
@ 2006-10-17 22:26 ` mmitchel at gcc dot gnu dot org
2007-02-14 9:12 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:29 ` jsm28 at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-17 22:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from mmitchel at gcc dot gnu dot org 2006-10-17 22:25 -------
Subject: Bug 27270
Author: mmitchel
Date: Tue Oct 17 22:25:35 2006
New Revision: 117832
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117832
Log:
PR c++/27270
* decl.c (reshape_init_class): Move check for designated
to ...
* parser.c (cp_parser_initializer_list): ... here.
* pt.c (tsubst_copy_and_build): Use finish_compound_literal.
PR c++/27270
* g++.dg/ext/complit8.C: Tweak error markers.
* g++.dg/template/complit1.C: Add error marker.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/ext/complit8.C
trunk/gcc/testsuite/g++.dg/template/complit1.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27270
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/27270] [4.1 Regression] ICE in process_init_constructor_array, at cp/typeck2.c:788
2006-04-23 14:49 [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788 timj at gtk dot org
` (8 preceding siblings ...)
2006-10-17 22:26 ` mmitchel at gcc dot gnu dot org
@ 2007-02-14 9:12 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:29 ` jsm28 at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2007-02-14 9:12 UTC (permalink / raw)
To: gcc-bugs
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.1.2 |4.1.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27270
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/27270] [4.1 Regression] ICE in process_init_constructor_array, at cp/typeck2.c:788
2006-04-23 14:49 [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788 timj at gtk dot org
` (9 preceding siblings ...)
2007-02-14 9:12 ` mmitchel at gcc dot gnu dot org
@ 2008-07-04 15:29 ` jsm28 at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2008-07-04 15:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jsm28 at gcc dot gnu dot org 2008-07-04 15:28 -------
Closing 4.1 branch.
--
jsm28 at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Known to fail|4.1.0 4.2.0 |4.1.0 4.1.3
Known to work|4.0.3 |4.0.3 4.2.0
Resolution| |FIXED
Target Milestone|4.1.3 |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27270
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2008-07-04 15:29 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-23 14:49 [Bug c++/27270] New: ICE in process_init_constructor_array, at cp/typeck2.c:788 timj at gtk dot org
2006-04-23 15:47 ` [Bug c++/27270] [4.1/4.2 Regression]ICE " rguenth at gcc dot gnu dot org
2006-05-14 22:29 ` mmitchel at gcc dot gnu dot org
2006-05-25 2:40 ` mmitchel at gcc dot gnu dot org
2006-08-12 21:36 ` janis at gcc dot gnu dot org
2006-10-16 23:34 ` [Bug c++/27270] [4.1/4.2 Regression] ICE " mmitchel at gcc dot gnu dot org
2006-10-17 2:01 ` mmitchel at gcc dot gnu dot org
2006-10-17 2:05 ` [Bug c++/27270] [4.1 " mmitchel at gcc dot gnu dot org
2006-10-17 17:30 ` shinwell at gcc dot gnu dot org
2006-10-17 22:26 ` mmitchel at gcc dot gnu dot org
2007-02-14 9:12 ` mmitchel at gcc dot gnu dot org
2008-07-04 15:29 ` jsm28 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).