public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/18729] New: [4.0 regression] ICE on invalid typedef
@ 2004-11-29 23:43 reichelt at gcc dot gnu dot org
2004-11-29 23:44 ` [Bug c++/18729] " 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 @ 2004-11-29 23:43 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet causes an ICE on mainline.
=================================
template<typename T> struct A
{
typedef typename T::X Y;
};
A<int>::Y y;
=================================
bug.cc: In instantiation of 'A<int>':
bug.cc:6: instantiated from here
bug.cc:3: error: 'int' is not a class, struct, or union type
bug.cc:6: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in cp_parser_class_name, at cp/parser.c:12235
Please submit a full bug report,
Mark, the regression was introduced by your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-11/msg01422.html
Could you please have a look?
--
Summary: [4.0 regression] ICE on invalid typedef
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18729
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/18729] [4.0 regression] ICE on invalid typedef
2004-11-29 23:43 [Bug c++/18729] New: [4.0 regression] ICE on invalid typedef reichelt at gcc dot gnu dot org
@ 2004-11-29 23:44 ` reichelt at gcc dot gnu dot org
2004-11-29 23:48 ` 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 @ 2004-11-29 23:44 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmitchel at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18729
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/18729] [4.0 regression] ICE on invalid typedef
2004-11-29 23:43 [Bug c++/18729] New: [4.0 regression] ICE on invalid typedef reichelt at gcc dot gnu dot org
2004-11-29 23:44 ` [Bug c++/18729] " reichelt at gcc dot gnu dot org
@ 2004-11-29 23:48 ` pinskia at gcc dot gnu dot org
2004-12-01 11:33 ` nathan 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 @ 2004-11-29 23:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-29 23:48 -------
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-11-29 23:48:38
date| |
Target Milestone|--- |4.0.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18729
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/18729] [4.0 regression] ICE on invalid typedef
2004-11-29 23:43 [Bug c++/18729] New: [4.0 regression] ICE on invalid typedef reichelt at gcc dot gnu dot org
2004-11-29 23:44 ` [Bug c++/18729] " reichelt at gcc dot gnu dot org
2004-11-29 23:48 ` pinskia at gcc dot gnu dot org
@ 2004-12-01 11:33 ` nathan at gcc dot gnu dot org
2004-12-01 16:38 ` cvs-commit at gcc dot gnu dot org
2004-12-01 16:38 ` nathan at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-12-01 11:33 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |nathan at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18729
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/18729] [4.0 regression] ICE on invalid typedef
2004-11-29 23:43 [Bug c++/18729] New: [4.0 regression] ICE on invalid typedef reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2004-12-01 16:38 ` cvs-commit at gcc dot gnu dot org
@ 2004-12-01 16:38 ` nathan at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: nathan at gcc dot gnu dot org @ 2004-12-01 16:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2004-12-01 16:38 -------
2004-12-01 Nathan Sidwell <nathan@codesourcery.com>
PR c++/18729
* parser.c (cp_parser_class_name): Check decl's type is not
error_mark_node.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18729
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/18729] [4.0 regression] ICE on invalid typedef
2004-11-29 23:43 [Bug c++/18729] New: [4.0 regression] ICE on invalid typedef reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-12-01 11:33 ` nathan at gcc dot gnu dot org
@ 2004-12-01 16:38 ` cvs-commit at gcc dot gnu dot org
2004-12-01 16:38 ` nathan at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-12-01 16:38 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2004-12-01 16:37 -------
Subject: Bug 18729
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: nathan@gcc.gnu.org 2004-12-01 16:37:42
Modified files:
gcc/cp : ChangeLog parser.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/parse: crash20.C
Log message:
cp:
PR c++/18729
* parser.c (cp_parser_class_name): Check decl's type is not
error_mark_node.
testsuite:
PR C++/18729
* g++.dg/parse/crash20.C: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4507&r2=1.4508
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/parser.c.diff?cvsroot=gcc&r1=1.285&r2=1.286
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/parse/crash20.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.4698&r2=1.4699
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18729
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-12-01 16:38 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-29 23:43 [Bug c++/18729] New: [4.0 regression] ICE on invalid typedef reichelt at gcc dot gnu dot org
2004-11-29 23:44 ` [Bug c++/18729] " reichelt at gcc dot gnu dot org
2004-11-29 23:48 ` pinskia at gcc dot gnu dot org
2004-12-01 11:33 ` nathan at gcc dot gnu dot org
2004-12-01 16:38 ` cvs-commit at gcc dot gnu dot org
2004-12-01 16:38 ` nathan 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).