public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition
@ 2006-07-05 0:20 reichelt at gcc dot gnu dot org
2006-07-05 0:24 ` [Bug c++/28261] " pinskia at gcc dot gnu dot org
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-05 0:20 UTC (permalink / raw)
To: gcc-bugs
The following invalid testcase triggers an ICE since GCC 4.0.0:
=========================================
struct A {};
A::A (enum { e }) {}
=========================================
bug.cc:3: internal compiler error: in push_class_level_binding, at
cp/name-lookup.c:2599
Please submit a full bug report, [etc.]
--
Summary: [4.0/4.1/4.2 regression] ICE with enum in constructor
definition
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=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28261] [4.0/4.1/4.2 regression] ICE with enum in constructor definition
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
@ 2006-07-05 0:24 ` pinskia at gcc dot gnu dot org
2006-07-17 3:06 ` mmitchel at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-05 0:24 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.0.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28261] [4.0/4.1/4.2 regression] ICE with enum in constructor definition
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
2006-07-05 0:24 ` [Bug c++/28261] " pinskia at gcc dot gnu dot org
@ 2006-07-17 3:06 ` mmitchel at gcc dot gnu dot org
2006-08-12 20:40 ` lopezibanez at gmail dot com
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-07-17 3:06 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=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28261] [4.0/4.1/4.2 regression] ICE with enum in constructor definition
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
2006-07-05 0:24 ` [Bug c++/28261] " pinskia at gcc dot gnu dot org
2006-07-17 3:06 ` mmitchel at gcc dot gnu dot org
@ 2006-08-12 20:40 ` lopezibanez at gmail dot com
2006-08-12 21:46 ` janis at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: lopezibanez at gmail dot com @ 2006-08-12 20:40 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from lopezibanez at gmail dot com 2006-08-12 20:40 -------
I can confirm this in trunk rev 115951 on i686-pc-gnu-linux.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28261] [4.0/4.1/4.2 regression] ICE with enum in constructor definition
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-08-12 20:40 ` lopezibanez at gmail dot com
@ 2006-08-12 21:46 ` janis at gcc dot gnu dot org
2006-08-14 19:00 ` reichelt at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: janis at gcc dot gnu dot org @ 2006-08-12 21:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from janis at gcc dot gnu dot org 2006-08-12 21:45 -------
A regression hunt on powerpc-linux identified the following patch:
http://gcc.gnu.org/viewcvs?view=rev&rev=84689
r84689 | mmitchel | 2004-07-14 15:34:30 +0000 (Wed, 14 Jul 2004)
--
janis at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28261] [4.0/4.1/4.2 regression] ICE with enum in constructor definition
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-08-12 21:46 ` janis at gcc dot gnu dot org
@ 2006-08-14 19:00 ` reichelt at gcc dot gnu dot org
2006-10-17 7:09 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-08-14 19:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from reichelt at gcc dot gnu dot org 2006-08-14 19:00 -------
Confirmed by Manuel and Janis.
--
reichelt 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-08-14 19:00:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28261] [4.0/4.1/4.2 regression] ICE with enum in constructor definition
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-08-14 19:00 ` reichelt at gcc dot gnu dot org
@ 2006-10-17 7:09 ` mmitchel at gcc dot gnu dot org
2006-10-17 22:43 ` mmitchel at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-17 7:09 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=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28261] [4.0/4.1/4.2 regression] ICE with enum in constructor definition
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-10-17 7:09 ` mmitchel at gcc dot gnu dot org
@ 2006-10-17 22:43 ` mmitchel at gcc dot gnu dot org
2006-10-17 22:51 ` [Bug c++/28261] [4.0/4.1 " mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-17 22:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mmitchel at gcc dot gnu dot org 2006-10-17 22:43 -------
Subject: Bug 28261
Author: mmitchel
Date: Tue Oct 17 22:43:37 2006
New Revision: 117835
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=117835
Log:
PR c++/28261
* parser.c (cp_lexer_next_token_is_decl_specifier_keyword): New
function.
(cp_parser_constructor_declarator_p): Use it.
(cp_parser_check_type_definition): Return a value indicating
whether or not the definition is valid.
(cp_parser_enum_specifier): Skip invalid enum definitions.
PR c++/28261
* g++.dg/parse/enum3.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/parse/enum3.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28261] [4.0/4.1 regression] ICE with enum in constructor definition
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-10-17 22:43 ` mmitchel at gcc dot gnu dot org
@ 2006-10-17 22:51 ` mmitchel at gcc dot gnu dot org
2007-01-03 8:14 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2006-10-17 22:51 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from mmitchel at gcc dot gnu dot org 2006-10-17 22:51 -------
Fixed in 4.2.0.
--
mmitchel at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1/4.2 regression] ICE|[4.0/4.1 regression] ICE
|with enum in constructor |with enum in constructor
|definition |definition
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28261] [4.0/4.1 regression] ICE with enum in constructor definition
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-10-17 22:51 ` [Bug c++/28261] [4.0/4.1 " mmitchel at gcc dot gnu dot org
@ 2007-01-03 8:14 ` jakub at gcc dot gnu dot org
2007-01-03 8:18 ` [Bug c++/28261] [4.0 " jakub at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-01-03 8:14 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jakub at gcc dot gnu dot org 2007-01-03 08:14 -------
Subject: Bug 28261
Author: jakub
Date: Wed Jan 3 08:13:50 2007
New Revision: 120392
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120392
Log:
PR c++/29535
Backported from mainline
2006-10-17 Mark Mitchell <mark@codesourcery.com>
PR c++/28261
* parser.c (cp_lexer_next_token_is_decl_specifier_keyword): New
function.
(cp_parser_constructor_declarator_p): Use it.
(cp_parser_check_type_definition): Return a value indicating
whether or not the definition is valid.
(cp_parser_enum_specifier): Skip invalid enum definitions.
PR c++/28261
* g++.dg/parse/enum3.C: New test.
PR c++/29535
* g++.dg/template/crash66.C: New test.
Added:
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/parse/enum3.C
branches/gcc-4_1-branch/gcc/testsuite/g++.dg/template/crash66.C
Modified:
branches/gcc-4_1-branch/gcc/cp/ChangeLog
branches/gcc-4_1-branch/gcc/cp/parser.c
branches/gcc-4_1-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28261] [4.0 regression] ICE with enum in constructor definition
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2007-01-03 8:14 ` jakub at gcc dot gnu dot org
@ 2007-01-03 8:18 ` jakub at gcc dot gnu dot org
2007-02-03 17:53 ` gdr at gcc dot gnu dot org
2007-02-03 20:43 ` reichelt at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2007-01-03 8:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jakub at gcc dot gnu dot org 2007-01-03 08:18 -------
Backported to 4.1.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.0/4.1 regression] ICE |[4.0 regression] ICE with
|with enum in constructor |enum in constructor
|definition |definition
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28261] [4.0 regression] ICE with enum in constructor definition
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
` (9 preceding siblings ...)
2007-01-03 8:18 ` [Bug c++/28261] [4.0 " jakub at gcc dot gnu dot org
@ 2007-02-03 17:53 ` gdr at gcc dot gnu dot org
2007-02-03 20:43 ` reichelt at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: gdr at gcc dot gnu dot org @ 2007-02-03 17:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from gdr at gcc dot gnu dot org 2007-02-03 17:53 -------
Fixed in GCC-4.1.1.
--
gdr at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|4.0.4 |4.1.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c++/28261] [4.0 regression] ICE with enum in constructor definition
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
` (10 preceding siblings ...)
2007-02-03 17:53 ` gdr at gcc dot gnu dot org
@ 2007-02-03 20:43 ` reichelt at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2007-02-03 20:43 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from reichelt at gcc dot gnu dot org 2007-02-03 20:43 -------
Actually it's not fixed in GCC 4.1.1, but in GCC 4.1.2.
--
reichelt 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=28261
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2007-02-03 20:43 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-05 0:20 [Bug c++/28261] New: [4.0/4.1/4.2 regression] ICE with enum in constructor definition reichelt at gcc dot gnu dot org
2006-07-05 0:24 ` [Bug c++/28261] " pinskia at gcc dot gnu dot org
2006-07-17 3:06 ` mmitchel at gcc dot gnu dot org
2006-08-12 20:40 ` lopezibanez at gmail dot com
2006-08-12 21:46 ` janis at gcc dot gnu dot org
2006-08-14 19:00 ` reichelt at gcc dot gnu dot org
2006-10-17 7:09 ` mmitchel at gcc dot gnu dot org
2006-10-17 22:43 ` mmitchel at gcc dot gnu dot org
2006-10-17 22:51 ` [Bug c++/28261] [4.0/4.1 " mmitchel at gcc dot gnu dot org
2007-01-03 8:14 ` jakub at gcc dot gnu dot org
2007-01-03 8:18 ` [Bug c++/28261] [4.0 " jakub at gcc dot gnu dot org
2007-02-03 17:53 ` gdr at gcc dot gnu dot org
2007-02-03 20:43 ` 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).