public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/29728] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function
@ 2006-11-05 20:25 reichelt at gcc dot gnu dot org
2006-11-05 23:19 ` [Bug c++/29728] " reichelt 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-11-05 20:25 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE since GCC 3.4.0:
=================================================
template<int> void foo()
{
int a[] = { X: 0 };
}
=================================================
bug.cc: In function 'void foo()':
bug.cc:3: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
--
Summary: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer
in template function
Product: gcc
Version: 4.3.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=29728
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/29728] [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function
2006-11-05 20:25 [Bug c++/29728] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function reichelt at gcc dot gnu dot org
@ 2006-11-05 23:19 ` reichelt at gcc dot gnu dot org
2006-11-12 20:36 ` mmitchel at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-11-05 23:19 UTC (permalink / raw)
To: gcc-bugs
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29728
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/29728] [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function
2006-11-05 20:25 [Bug c++/29728] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function reichelt at gcc dot gnu dot org
2006-11-05 23:19 ` [Bug c++/29728] " reichelt at gcc dot gnu dot org
@ 2006-11-12 20:36 ` mmitchel at gcc dot gnu dot org
2006-11-26 0:20 ` pinskia 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-11-12 20:36 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=29728
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/29728] [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function
2006-11-05 20:25 [Bug c++/29728] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function reichelt at gcc dot gnu dot org
2006-11-05 23:19 ` [Bug c++/29728] " reichelt at gcc dot gnu dot org
2006-11-12 20:36 ` mmitchel at gcc dot gnu dot org
@ 2006-11-26 0:20 ` pinskia at gcc dot gnu dot org
2006-12-05 21:33 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-11-26 0:20 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-11-26 00:19 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-11-26 00:19:53
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29728
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/29728] [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function
2006-11-05 20:25 [Bug c++/29728] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-11-26 0:20 ` pinskia at gcc dot gnu dot org
@ 2006-12-05 21:33 ` mmitchel at gcc dot gnu dot org
2006-12-05 21:37 ` [Bug c++/29728] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-05 21:33 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from mmitchel at gcc dot gnu dot org 2006-12-05 21:33 -------
Subject: Bug 29728
Author: mmitchel
Date: Tue Dec 5 21:33:20 2006
New Revision: 119558
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119558
Log:
PR c++/29728
* decl.c (check_array_designated_initializer): New function.
(maybe_deduce_size_from_array_init): Use it.
(reshape_init_array): Likewise.
PR c++/29728
* g++.dg/template/crash62.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/template/crash62.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29728
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/29728] [4.0/4.1/4.2 regression] ICE on invalid initializer in template function
2006-11-05 20:25 [Bug c++/29728] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-12-05 21:37 ` [Bug c++/29728] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
@ 2006-12-05 21:37 ` mmitchel at gcc dot gnu dot org
2006-12-06 1:46 ` mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-05 21:37 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=29728
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/29728] [4.0/4.1/4.2 regression] ICE on invalid initializer in template function
2006-11-05 20:25 [Bug c++/29728] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-12-05 21:33 ` mmitchel at gcc dot gnu dot org
@ 2006-12-05 21:37 ` mmitchel at gcc dot gnu dot org
2006-12-05 21:37 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-05 21:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from mmitchel at gcc dot gnu dot org 2006-12-05 21:36 -------
Fixed in 4.3.0.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1/4.2/4.3 regression]|[4.0/4.1/4.2 regression] ICE
|ICE on invalid initializer |on invalid initializer in
|in template function |template function
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29728
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/29728] [4.0/4.1/4.2 regression] ICE on invalid initializer in template function
2006-11-05 20:25 [Bug c++/29728] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-12-05 21:37 ` mmitchel at gcc dot gnu dot org
@ 2006-12-06 1:46 ` mmitchel at gcc dot gnu dot org
2006-12-06 18:27 ` [Bug c++/29728] [4.0/4.1 " mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-06 1:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mmitchel at gcc dot gnu dot org 2006-12-06 01:46 -------
Subject: Bug 29728
Author: mmitchel
Date: Wed Dec 6 01:46:26 2006
New Revision: 119574
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119574
Log:
PR c++/29728
* decl.c (check_array_designated_initializer): New function.
(maybe_deduce_size_from_array_init): Use it.
(reshape_init_array): Likewise.
PR c++/29728
* g++.dg/template/crash62.C: New test.
Added:
branches/gcc-4_2-branch/gcc/testsuite/g++.dg/template/crash62.C
Modified:
branches/gcc-4_2-branch/gcc/cp/ChangeLog
branches/gcc-4_2-branch/gcc/cp/decl.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29728
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/29728] [4.0 regression] ICE on invalid initializer in template function
2006-11-05 20:25 [Bug c++/29728] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-12-06 18:27 ` [Bug c++/29728] [4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2006-12-06 18:27 ` mmitchel at gcc dot gnu dot org
2007-02-03 20:50 ` gdr at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-06 18:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from mmitchel at gcc dot gnu dot org 2006-12-06 18:27 -------
Fixed in 4.1.2.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|mark at codesourcery dot com|unassigned at gcc dot gnu
| |dot org
Status|ASSIGNED |NEW
Summary|[4.0/4.1 regression] ICE on |[4.0 regression] ICE on
|invalid initializer in |invalid initializer in
|template function |template function
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29728
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/29728] [4.0/4.1 regression] ICE on invalid initializer in template function
2006-11-05 20:25 [Bug c++/29728] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-12-06 1:46 ` mmitchel at gcc dot gnu dot org
@ 2006-12-06 18:27 ` mmitchel at gcc dot gnu dot org
2006-12-06 18:27 ` [Bug c++/29728] [4.0 " mmitchel at gcc dot gnu dot org
2007-02-03 20:50 ` gdr at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-12-06 18:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mmitchel at gcc dot gnu dot org 2006-12-06 18:26 -------
Subject: Bug 29728
Author: mmitchel
Date: Wed Dec 6 18:26:44 2006
New Revision: 119588
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=119588
Log:
PR c++/29728
* decl.c (check_array_designated_initializer): New function.
(maybe_deduce_size_from_array_init): Use it.
(reshape_init_array): Likewise.
PR c++/29728
* g++.dg/template/crash62.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/crash62.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/decl.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/ext/complit3.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29728
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/29728] [4.0 regression] ICE on invalid initializer in template function
2006-11-05 20:25 [Bug c++/29728] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2006-12-06 18:27 ` [Bug c++/29728] [4.0 " mmitchel at gcc dot gnu dot org
@ 2007-02-03 20:50 ` gdr at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 20:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from gdr at gcc dot gnu dot org 2007-02-03 20:49 -------
Fixed in GCC-4.1.2.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29728
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2007-02-03 20:50 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-05 20:25 [Bug c++/29728] New: [4.0/4.1/4.2/4.3 regression] ICE on invalid initializer in template function reichelt at gcc dot gnu dot org
2006-11-05 23:19 ` [Bug c++/29728] " reichelt at gcc dot gnu dot org
2006-11-12 20:36 ` mmitchel at gcc dot gnu dot org
2006-11-26 0:20 ` pinskia at gcc dot gnu dot org
2006-12-05 21:33 ` mmitchel at gcc dot gnu dot org
2006-12-05 21:37 ` [Bug c++/29728] [4.0/4.1/4.2 " mmitchel at gcc dot gnu dot org
2006-12-05 21:37 ` mmitchel at gcc dot gnu dot org
2006-12-06 1:46 ` mmitchel at gcc dot gnu dot org
2006-12-06 18:27 ` [Bug c++/29728] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2006-12-06 18:27 ` [Bug c++/29728] [4.0 " mmitchel at gcc dot gnu dot org
2007-02-03 20:50 ` gdr 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).