public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28293] New: ICE on invalid typedef
@ 2006-07-06 21:05 reichelt at gcc dot gnu dot org
2006-09-03 7:27 ` [Bug c++/28293] " pinskia at gcc dot gnu dot org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-07-06 21:05 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE since at least GCC 2.95.3:
======================
template<int> void foo();
struct A
{
typedef void foo<0>();
};
======================
bug.cc:5: internal compiler error: tree check: expected identifier_node, have
template_id_expr in grokfield, at cp/decl2.c:805
Please submit a full bug report, [etc.]
--
Summary: ICE on invalid typedef
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=28293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28293] ICE on invalid typedef
2006-07-06 21:05 [Bug c++/28293] New: ICE on invalid typedef reichelt at gcc dot gnu dot org
@ 2006-09-03 7:27 ` pinskia at gcc dot gnu dot org
2007-09-21 19:13 ` pcarlini at suse dot de
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-09-03 7:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-09-03 07:27 -------
Confirmed.
--
pinskia 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-09-03 07:27:46
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28293] ICE on invalid typedef
2006-07-06 21:05 [Bug c++/28293] New: ICE on invalid typedef reichelt at gcc dot gnu dot org
2006-09-03 7:27 ` [Bug c++/28293] " pinskia at gcc dot gnu dot org
@ 2007-09-21 19:13 ` pcarlini at suse dot de
2008-09-03 10:03 ` paolo dot carlini at oracle dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pcarlini at suse dot de @ 2007-09-21 19:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pcarlini at suse dot de 2007-09-21 19:12 -------
On it.
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pcarlini at suse dot de
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28293] ICE on invalid typedef
2006-07-06 21:05 [Bug c++/28293] New: ICE on invalid typedef reichelt at gcc dot gnu dot org
2006-09-03 7:27 ` [Bug c++/28293] " pinskia at gcc dot gnu dot org
2007-09-21 19:13 ` pcarlini at suse dot de
@ 2008-09-03 10:03 ` paolo dot carlini at oracle dot com
2009-09-09 16:23 ` paolo dot carlini at oracle dot com
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-09-03 10:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from paolo dot carlini at oracle dot com 2008-09-03 10:01 -------
Patch at:
http://gcc.gnu.org/ml/gcc-patches/2008-08/msg01070.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28293] ICE on invalid typedef
2006-07-06 21:05 [Bug c++/28293] New: ICE on invalid typedef reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2008-09-03 10:03 ` paolo dot carlini at oracle dot com
@ 2009-09-09 16:23 ` paolo dot carlini at oracle dot com
2009-09-09 16:26 ` paolo dot carlini at oracle dot com
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-09-09 16:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from paolo dot carlini at oracle dot com 2009-09-09 16:23 -------
Created an attachment (id=18555)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18555&action=view)
Slightly tweaked (only the testcase) patch
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28293] ICE on invalid typedef
2006-07-06 21:05 [Bug c++/28293] New: ICE on invalid typedef reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-09-09 16:23 ` paolo dot carlini at oracle dot com
@ 2009-09-09 16:26 ` paolo dot carlini at oracle dot com
2009-09-09 21:53 ` jason at redhat dot com
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-09-09 16:26 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from paolo dot carlini at oracle dot com 2009-09-09 16:25 -------
Jason, any chance you can have a look to the old patch of mine for this PR? I
have regtested again a slightly tweaked version of the original one. Note, the
issue is rather annoying to the users, because currently we ice without any
previous error message.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28293] ICE on invalid typedef
2006-07-06 21:05 [Bug c++/28293] New: ICE on invalid typedef reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-09-09 16:26 ` paolo dot carlini at oracle dot com
@ 2009-09-09 21:53 ` jason at redhat dot com
2009-09-09 23:32 ` paolo at gcc dot gnu dot org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at redhat dot com @ 2009-09-09 21:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jason at redhat dot com 2009-09-09 21:52 -------
Subject: Re: ICE on invalid typedef
On 09/09/2009 12:25 PM, paolo dot carlini at oracle dot com wrote:
> Jason, any chance you can have a look to the old patch of mine for this PR?
The patch is OK.
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28293] ICE on invalid typedef
2006-07-06 21:05 [Bug c++/28293] New: ICE on invalid typedef reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-09-09 21:53 ` jason at redhat dot com
@ 2009-09-09 23:32 ` paolo at gcc dot gnu dot org
2009-09-09 23:34 ` paolo at gcc dot gnu dot org
2009-09-09 23:35 ` paolo dot carlini at oracle dot com
8 siblings, 0 replies; 10+ messages in thread
From: paolo at gcc dot gnu dot org @ 2009-09-09 23:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from paolo at gcc dot gnu dot org 2009-09-09 23:32 -------
Subject: Bug 28293
Author: paolo
Date: Wed Sep 9 23:31:47 2009
New Revision: 151580
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151580
Log:
/cp
2009-09-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/28293
* decl.c (grokfield): Check for explicit template argument lists.
/testsuite
2009-09-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/28293
* g++.dg/template/crash91.C: New.
Added:
trunk/gcc/testsuite/g++.dg/template/crash91.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28293] ICE on invalid typedef
2006-07-06 21:05 [Bug c++/28293] New: ICE on invalid typedef reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-09-09 23:32 ` paolo at gcc dot gnu dot org
@ 2009-09-09 23:34 ` paolo at gcc dot gnu dot org
2009-09-09 23:35 ` paolo dot carlini at oracle dot com
8 siblings, 0 replies; 10+ messages in thread
From: paolo at gcc dot gnu dot org @ 2009-09-09 23:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from paolo at gcc dot gnu dot org 2009-09-09 23:34 -------
Subject: Bug 28293
Author: paolo
Date: Wed Sep 9 23:33:38 2009
New Revision: 151581
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151581
Log:
/cp
2009-09-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/28293
* decl2.c (grokfield): Check for explicit template argument lists.
/testsuite
2009-09-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/28293
* g++.dg/template/crash91.C: New.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl2.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28293
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/28293] ICE on invalid typedef
2006-07-06 21:05 [Bug c++/28293] New: ICE on invalid typedef reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2009-09-09 23:34 ` paolo at gcc dot gnu dot org
@ 2009-09-09 23:35 ` paolo dot carlini at oracle dot com
8 siblings, 0 replies; 10+ messages in thread
From: paolo dot carlini at oracle dot com @ 2009-09-09 23:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from paolo dot carlini at oracle dot com 2009-09-09 23:34 -------
Fixed in mainline.
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28293
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2009-09-09 23:35 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-06 21:05 [Bug c++/28293] New: ICE on invalid typedef reichelt at gcc dot gnu dot org
2006-09-03 7:27 ` [Bug c++/28293] " pinskia at gcc dot gnu dot org
2007-09-21 19:13 ` pcarlini at suse dot de
2008-09-03 10:03 ` paolo dot carlini at oracle dot com
2009-09-09 16:23 ` paolo dot carlini at oracle dot com
2009-09-09 16:26 ` paolo dot carlini at oracle dot com
2009-09-09 21:53 ` jason at redhat dot com
2009-09-09 23:32 ` paolo at gcc dot gnu dot org
2009-09-09 23:34 ` paolo at gcc dot gnu dot org
2009-09-09 23:35 ` paolo dot carlini at oracle dot com
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).