public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/38637] New: [4.4 regression] ICE with template declaration of enum
@ 2008-12-26 22:30 reichelt at gcc dot gnu dot org
2008-12-26 22:34 ` [Bug c++/38637] " reichelt at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-12-26 22:30 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE on mainline:
========================================
template<int> enum E : int { e };
========================================
bug.cc:1: error: template declaration of 'enum E'
bug.cc:1: internal compiler error: tree check: expected integer_type or
enumeral_type or boolean_type or real_type or fixed_point_type, have error_mark
in start_enum, at cp/decl.c:10911
Please submit a full bug report, [etc.]
--
Summary: [4.4 regression] ICE with template declaration of enum
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, 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=38637
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/38637] [4.4 regression] ICE with template declaration of enum
2008-12-26 22:30 [Bug c++/38637] New: [4.4 regression] ICE with template declaration of enum reichelt at gcc dot gnu dot org
@ 2008-12-26 22:34 ` reichelt at gcc dot gnu dot org
2008-12-27 1:30 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-12-26 22:34 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=38637
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/38637] [4.4 regression] ICE with template declaration of enum
2008-12-26 22:30 [Bug c++/38637] New: [4.4 regression] ICE with template declaration of enum reichelt at gcc dot gnu dot org
2008-12-26 22:34 ` [Bug c++/38637] " reichelt at gcc dot gnu dot org
@ 2008-12-27 1:30 ` pinskia at gcc dot gnu dot org
2008-12-27 9:14 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-27 1:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2008-12-27 01:28 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pinskia at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2008-12-27 01:28:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38637
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/38637] [4.4 regression] ICE with template declaration of enum
2008-12-26 22:30 [Bug c++/38637] New: [4.4 regression] ICE with template declaration of enum reichelt at gcc dot gnu dot org
2008-12-26 22:34 ` [Bug c++/38637] " reichelt at gcc dot gnu dot org
2008-12-27 1:30 ` pinskia at gcc dot gnu dot org
@ 2008-12-27 9:14 ` jakub at gcc dot gnu dot org
2008-12-29 8:30 ` jakub at gcc dot gnu dot org
2008-12-29 8:36 ` jakub at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-12-27 9:14 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2008-12-27 01:28:13 |2008-12-27 09:11:10
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38637
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/38637] [4.4 regression] ICE with template declaration of enum
2008-12-26 22:30 [Bug c++/38637] New: [4.4 regression] ICE with template declaration of enum reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-12-27 9:14 ` jakub at gcc dot gnu dot org
@ 2008-12-29 8:30 ` jakub at gcc dot gnu dot org
2008-12-29 8:36 ` jakub at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-12-29 8:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jakub at gcc dot gnu dot org 2008-12-29 08:29 -------
Subject: Bug 38637
Author: jakub
Date: Mon Dec 29 08:28:06 2008
New Revision: 142946
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=142946
Log:
PR c++/38637
* decl.c (start_enum): If enumtype is error_mark_node, exit early.
* g++.dg/cpp0x/enum2.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/enum2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38637
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/38637] [4.4 regression] ICE with template declaration of enum
2008-12-26 22:30 [Bug c++/38637] New: [4.4 regression] ICE with template declaration of enum reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2008-12-29 8:30 ` jakub at gcc dot gnu dot org
@ 2008-12-29 8:36 ` jakub at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-12-29 8:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2008-12-29 08:33 -------
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=38637
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-12-29 8:36 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-26 22:30 [Bug c++/38637] New: [4.4 regression] ICE with template declaration of enum reichelt at gcc dot gnu dot org
2008-12-26 22:34 ` [Bug c++/38637] " reichelt at gcc dot gnu dot org
2008-12-27 1:30 ` pinskia at gcc dot gnu dot org
2008-12-27 9:14 ` jakub at gcc dot gnu dot org
2008-12-29 8:30 ` jakub at gcc dot gnu dot org
2008-12-29 8:36 ` 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).