public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18731] New: [3.3/3.4/4.0 regression] ICE on invalid template declaration
@ 2004-11-30 0:34 reichelt at gcc dot gnu dot org
2004-11-30 0:39 ` [Bug c++/18731] " pinskia at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-11-30 0:34 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet causes an ICE since gcc 3.3
(it also crashes gcc 2.95.x, 3.0.x, but doesn't crash gcc 3.1.x, 3.2.x):
=======================================
template<typename T> struct T::A {};
=======================================
Mainline issues the following error message:
bug.cc:5: internal compiler error: in is_ancestor, at cp/name-lookup.c:2185
Please submit a full bug report, [etc.]
--
Summary: [3.3/3.4/4.0 regression] ICE on invalid template
declaration
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Keywords: ice-on-invalid-code, 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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18731
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/18731] [3.3/3.4/4.0 regression] ICE on invalid template declaration
2004-11-30 0:34 [Bug c++/18731] New: [3.3/3.4/4.0 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
@ 2004-11-30 0:39 ` pinskia at gcc dot gnu dot org
2004-12-09 15:54 ` reichelt at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-30 0:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-30 00:39 -------
: Search converges between 2002-12-14-trunk (#159) and 2002-12-29-trunk (#160).
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-11-30 00:39:17
date| |
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18731
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/18731] [3.3/3.4/4.0 regression] ICE on invalid template declaration
2004-11-30 0:34 [Bug c++/18731] New: [3.3/3.4/4.0 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
2004-11-30 0:39 ` [Bug c++/18731] " pinskia at gcc dot gnu dot org
@ 2004-12-09 15:54 ` reichelt at gcc dot gnu dot org
2004-12-10 13:50 ` pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-12-09 15:54 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Last reconfirmed|2004-11-30 00:39:17 |2004-12-09 15:54:55
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18731
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/18731] [3.3/3.4/4.0 regression] ICE on invalid template declaration
2004-11-30 0:34 [Bug c++/18731] New: [3.3/3.4/4.0 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
2004-11-30 0:39 ` [Bug c++/18731] " pinskia at gcc dot gnu dot org
2004-12-09 15:54 ` reichelt at gcc dot gnu dot org
@ 2004-12-10 13:50 ` pinskia at gcc dot gnu dot org
2004-12-10 16:04 ` cvs-commit at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-10 13:50 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-10 13:50 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-12/msg00742.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18731
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/18731] [3.3/3.4/4.0 regression] ICE on invalid template declaration
2004-11-30 0:34 [Bug c++/18731] New: [3.3/3.4/4.0 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-12-10 13:50 ` pinskia at gcc dot gnu dot org
@ 2004-12-10 16:04 ` cvs-commit at gcc dot gnu dot org
2004-12-10 16:13 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-10 16:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-10 16:04 -------
Subject: Bug 18731
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: reichelt@gcc.gnu.org 2004-12-10 16:04:22
Modified files:
gcc/cp : ChangeLog parser.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/parse: struct-1.C struct-2.C struct-3.C
Log message:
PR c++/18731
* parser.c (cp_parser_class_head): Reject typedef-name in class head.
* g++.dg/parser/struct-1.C: New test.
* g++.dg/parser/struct-2.C: New test.
* g++.dg/parser/struct-3.C: New test.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4527&r2=1.4528
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.292&r2=1.293
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4734&r2=1.4735
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/struct-1.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/struct-2.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/struct-3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18731
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/18731] [3.3/3.4/4.0 regression] ICE on invalid template declaration
2004-11-30 0:34 [Bug c++/18731] New: [3.3/3.4/4.0 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-12-10 16:04 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-10 16:13 ` cvs-commit at gcc dot gnu dot org
2004-12-10 16:15 ` [Bug c++/18731] [3.3 " reichelt at gcc dot gnu dot org
2004-12-15 13:07 ` [Bug c++/18731] [3.3/3.4/4.0 " reichelt at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-10 16:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-10 16:13 -------
Subject: Bug 18731
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-3_4-branch
Changes by: reichelt@gcc.gnu.org 2004-12-10 16:13:47
Modified files:
gcc/cp : ChangeLog parser.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/parse: struct-1.C struct-2.C struct-3.C
Log message:
PR c++/18731
* parser.c (cp_parser_class_head): Reject typedef-name in class head.
* g++.dg/parser/struct-1.C: New test.
* g++.dg/parser/struct-2.C: New test.
* g++.dg/parser/struct-3.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.184&r2=1.3892.2.185
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.46&r2=1.157.2.47
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.321&r2=1.3389.2.322
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/struct-1.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/struct-2.C.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=NONE&r2=1.1.2.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/struct-3.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=18731
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/18731] [3.3 regression] ICE on invalid template declaration
2004-11-30 0:34 [Bug c++/18731] New: [3.3/3.4/4.0 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2004-12-10 16:13 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-10 16:15 ` reichelt at gcc dot gnu dot org
2004-12-15 13:07 ` [Bug c++/18731] [3.3/3.4/4.0 " reichelt at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-12-10 16:15 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-12-10 16:15 -------
Fixed on mainline and for 3.4.4
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.3/3.4/4.0 regression] ICE|[3.3 regression] ICE on
|on invalid template |invalid template declaration
|declaration |
Target Milestone|3.4.4 |3.3.6
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18731
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/18731] [3.3/3.4/4.0 regression] ICE on invalid template declaration
2004-11-30 0:34 [Bug c++/18731] New: [3.3/3.4/4.0 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2004-12-10 16:15 ` [Bug c++/18731] [3.3 " reichelt at gcc dot gnu dot org
@ 2004-12-15 13:07 ` reichelt at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-12-15 13:07 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From reichelt at gcc dot gnu dot org 2004-12-15 13:07 -------
Won't fix on the 3.3 branch.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Summary|[3.3 regression] ICE on |[3.3/3.4/4.0 regression] ICE
|invalid template declaration|on invalid template
| |declaration
Target Milestone|3.3.6 |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18731
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2004-12-15 13:07 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-30 0:34 [Bug c++/18731] New: [3.3/3.4/4.0 regression] ICE on invalid template declaration reichelt at gcc dot gnu dot org
2004-11-30 0:39 ` [Bug c++/18731] " pinskia at gcc dot gnu dot org
2004-12-09 15:54 ` reichelt at gcc dot gnu dot org
2004-12-10 13:50 ` pinskia at gcc dot gnu dot org
2004-12-10 16:04 ` cvs-commit at gcc dot gnu dot org
2004-12-10 16:13 ` cvs-commit at gcc dot gnu dot org
2004-12-10 16:15 ` [Bug c++/18731] [3.3 " reichelt at gcc dot gnu dot org
2004-12-15 13:07 ` [Bug c++/18731] [3.3/3.4/4.0 " 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).