public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum
@ 2004-10-23 22:52 reichelt at gcc dot gnu dot org
2004-10-23 23:07 ` [Bug c++/18123] " pinskia 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 @ 2004-10-23 22:52 UTC (permalink / raw)
To: gcc-bugs
Compiling the following invalid ocde snippet I get an ICE:
==============================
template<int> enum E { e };
==============================
bug.cc:1: error: template declaration of 'enum E'
bug.cc:1: internal compiler error: tree check: expected class 'declaration',
have 'exceptional' (error_mark) in pushdecl, at cp/name-lookup.c:641
Please submit a full bug report, [etc.]
The regression appeared with Kriang's patch
http://gcc.gnu.org/ml/gcc-cvs/2003-10/msg00781.html
Looks like some function cannot deal with the returned error_mark_node
in push_template_decl_real.
--
Summary: [3.4/4.0 regression] ICE on templated enum
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, error-recovery, monitored
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,lerdsuwa at gcc dot gnu
dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18123] [3.4/4.0 regression] ICE on templated enum
2004-10-23 22:52 [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum reichelt at gcc dot gnu dot org
@ 2004-10-23 23:07 ` pinskia at gcc dot gnu dot org
2004-10-23 23:08 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-23 23:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-23 23:07 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-10-23 23:07:28
date| |
Target Milestone|--- |3.4.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18123] [3.4/4.0 regression] ICE on templated enum
2004-10-23 22:52 [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum reichelt at gcc dot gnu dot org
2004-10-23 23:07 ` [Bug c++/18123] " pinskia at gcc dot gnu dot org
@ 2004-10-23 23:08 ` pinskia at gcc dot gnu dot org
2004-10-24 8:44 ` lerdsuwa at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-23 23:08 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-23 23:08 -------
: Search converges between 2003-10-20-trunk (#382) and 2003-10-23-trunk (#383).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18123] [3.4/4.0 regression] ICE on templated enum
2004-10-23 22:52 [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum reichelt at gcc dot gnu dot org
2004-10-23 23:07 ` [Bug c++/18123] " pinskia at gcc dot gnu dot org
2004-10-23 23:08 ` pinskia at gcc dot gnu dot org
@ 2004-10-24 8:44 ` lerdsuwa at gcc dot gnu dot org
2004-11-01 0:46 ` mmitchel at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-10-24 8:44 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-10-24 08:44 -------
Will look at it.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |lerdsuwa at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18123] [3.4/4.0 regression] ICE on templated enum
2004-10-23 22:52 [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-10-24 8:44 ` lerdsuwa at gcc dot gnu dot org
@ 2004-11-01 0:46 ` mmitchel at gcc dot gnu dot org
2004-11-03 12:22 ` lerdsuwa 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 @ 2004-11-01 0:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-11-01 00:46 -------
Postponed until GCC 3.4.4.
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.3 |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18123] [3.4/4.0 regression] ICE on templated enum
2004-10-23 22:52 [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-11-01 0:46 ` mmitchel at gcc dot gnu dot org
@ 2004-11-03 12:22 ` lerdsuwa at gcc dot gnu dot org
2004-11-09 16:18 ` lerdsuwa at gcc dot gnu dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-11-03 12:22 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-11-03 12:22 -------
Patch submitted:
http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00194.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18123] [3.4/4.0 regression] ICE on templated enum
2004-10-23 22:52 [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-11-03 12:22 ` lerdsuwa at gcc dot gnu dot org
@ 2004-11-09 16:18 ` lerdsuwa at gcc dot gnu dot org
2004-11-11 14:17 ` lerdsuwa at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-11-09 16:18 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-11-09 16:18 -------
Old patch retracted, new patch in progress.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords|patch |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18123] [3.4/4.0 regression] ICE on templated enum
2004-10-23 22:52 [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-11-09 16:18 ` lerdsuwa at gcc dot gnu dot org
@ 2004-11-11 14:17 ` lerdsuwa at gcc dot gnu dot org
2004-12-02 11:35 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-11-11 14:17 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-11-11 14:17 -------
Revised patch posted:
http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00890.html
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18123] [3.4/4.0 regression] ICE on templated enum
2004-10-23 22:52 [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2004-11-11 14:17 ` lerdsuwa at gcc dot gnu dot org
@ 2004-12-02 11:35 ` cvs-commit at gcc dot gnu dot org
2004-12-02 11:51 ` cvs-commit at gcc dot gnu dot org
2004-12-02 11:52 ` lerdsuwa at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-02 11:35 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-02 11:35 -------
Subject: Bug 18123
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: lerdsuwa@gcc.gnu.org 2004-12-02 11:34:57
Modified files:
gcc/cp : ChangeLog parser.c
gcc/testsuite : ChangeLog
gcc/testsuite/g++.old-deja/g++.pt: enum5.C
Added files:
gcc/testsuite/g++.dg/parse: enum2.C
Log message:
PR c++/18123
* parser.c (cp_parser_type_specifier): Catch template declaration
of enum.
* g++.dg/parse/enum2.C: New test.
* g++.old-deja/g++.pt/enum5.C: Adjust error location.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4509&r2=1.4510
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.286&r2=1.287
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4705&r2=1.4706
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/enum2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.old-deja/g++.pt/enum5.C.diff?cvsroot=gcc&r1=1.5&r2=1.6
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18123] [3.4/4.0 regression] ICE on templated enum
2004-10-23 22:52 [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2004-12-02 11:35 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-02 11:51 ` cvs-commit at gcc dot gnu dot org
2004-12-02 11:52 ` lerdsuwa at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-02 11:51 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-02 11:51 -------
Subject: Bug 18123
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: lerdsuwa@gcc.gnu.org 2004-12-02 11:51:33
Modified files:
gcc/cp : ChangeLog parser.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/parse: enum2.C
Log message:
PR c++/18123
* parser.c (cp_parser_type_specifier): Don't create new enum
type if it is not in the form 'enum [identifier] { [...] };'.
Catch template declaration of enum.
* g++.dg/parse/enum2.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3892.2.180&r2=1.3892.2.181
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.157.2.45&r2=1.157.2.46
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.3389.2.316&r2=1.3389.2.317
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/enum2.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18123
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/18123] [3.4/4.0 regression] ICE on templated enum
2004-10-23 22:52 [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2004-12-02 11:51 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-02 11:52 ` lerdsuwa at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: lerdsuwa at gcc dot gnu dot org @ 2004-12-02 11:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From lerdsuwa at gcc dot gnu dot org 2004-12-02 11:52 -------
Fixed in 3.4 branch and mainline.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18123
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2004-12-02 11:52 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-23 22:52 [Bug c++/18123] New: [3.4/4.0 regression] ICE on templated enum reichelt at gcc dot gnu dot org
2004-10-23 23:07 ` [Bug c++/18123] " pinskia at gcc dot gnu dot org
2004-10-23 23:08 ` pinskia at gcc dot gnu dot org
2004-10-24 8:44 ` lerdsuwa at gcc dot gnu dot org
2004-11-01 0:46 ` mmitchel at gcc dot gnu dot org
2004-11-03 12:22 ` lerdsuwa at gcc dot gnu dot org
2004-11-09 16:18 ` lerdsuwa at gcc dot gnu dot org
2004-11-11 14:17 ` lerdsuwa at gcc dot gnu dot org
2004-12-02 11:35 ` cvs-commit at gcc dot gnu dot org
2004-12-02 11:51 ` cvs-commit at gcc dot gnu dot org
2004-12-02 11:52 ` lerdsuwa 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).