public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/28269] New: [4.2 regression] ICE on attribute for invalid template
@ 2006-07-05 12:37 reichelt at gcc dot gnu dot org
2006-07-05 15:39 ` [Bug c++/28269] " pinskia 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 @ 2006-07-05 12:37 UTC (permalink / raw)
To: gcc-bugs
The following invalid code snippet triggers an ICE on mainline:
============================================================
template<int> struct A;
struct __attribute__((unused)) A<0<;
============================================================
bug.cc:3: error: template argument 1 is invalid
bug.cc:3: internal compiler error: tree check: expected class 'type', have
'exceptional' (error_mark) in cp_parser_elaborated_type_specifier, at
cp/parser.c:10245
Please submit a full bug report, [etc.]
--
Summary: [4.2 regression] ICE on attribute for invalid template
Product: gcc
Version: 4.2.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=28269
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28269] [4.2 regression] ICE on attribute for invalid template
2006-07-05 12:37 [Bug c++/28269] New: [4.2 regression] ICE on attribute for invalid template reichelt at gcc dot gnu dot org
@ 2006-07-05 15:39 ` pinskia at gcc dot gnu dot org
2006-07-09 19:55 ` patchapp at dberlin dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-07-05 15:39 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28269
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28269] [4.2 regression] ICE on attribute for invalid template
2006-07-05 12:37 [Bug c++/28269] New: [4.2 regression] ICE on attribute for invalid template reichelt at gcc dot gnu dot org
2006-07-05 15:39 ` [Bug c++/28269] " pinskia at gcc dot gnu dot org
@ 2006-07-09 19:55 ` patchapp at dberlin dot org
2006-07-09 20:00 ` lmillward at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: patchapp at dberlin dot org @ 2006-07-09 19:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from patchapp at dberlin dot org 2006-07-09 19:55 -------
Subject: Bug number PR c++/28269
A patch for this bug has been added to the patch tracker.
The mailing list url for the patch is
http://gcc.gnu.org/ml/gcc-patches/2006-07/msg00383.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28269
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28269] [4.2 regression] ICE on attribute for invalid template
2006-07-05 12:37 [Bug c++/28269] New: [4.2 regression] ICE on attribute for invalid template reichelt at gcc dot gnu dot org
2006-07-05 15:39 ` [Bug c++/28269] " pinskia at gcc dot gnu dot org
2006-07-09 19:55 ` patchapp at dberlin dot org
@ 2006-07-09 20:00 ` lmillward at gcc dot gnu dot org
2006-07-15 15:00 ` lmillward at gcc dot gnu dot org
2006-07-15 15:01 ` lmillward at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-07-09 20:00 UTC (permalink / raw)
To: gcc-bugs
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |lmillward at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-07-09 20:00:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28269
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28269] [4.2 regression] ICE on attribute for invalid template
2006-07-05 12:37 [Bug c++/28269] New: [4.2 regression] ICE on attribute for invalid template reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-07-09 20:00 ` lmillward at gcc dot gnu dot org
@ 2006-07-15 15:00 ` lmillward at gcc dot gnu dot org
2006-07-15 15:01 ` lmillward at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-07-15 15:00 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from lmillward at gcc dot gnu dot org 2006-07-15 15:00 -------
Subject: Bug 28269
Author: lmillward
Date: Sat Jul 15 15:00:28 2006
New Revision: 115475
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=115475
Log:
PR c++/28269
* parser.c (cp_parser_elaborated_type_specifier):
Return early if an invalid type was detected.
* g++.dg/template/crash54.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/template/crash54.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28269
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/28269] [4.2 regression] ICE on attribute for invalid template
2006-07-05 12:37 [Bug c++/28269] New: [4.2 regression] ICE on attribute for invalid template reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-07-15 15:00 ` lmillward at gcc dot gnu dot org
@ 2006-07-15 15:01 ` lmillward at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: lmillward at gcc dot gnu dot org @ 2006-07-15 15:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from lmillward at gcc dot gnu dot org 2006-07-15 15:01 -------
Fixed.
--
lmillward at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28269
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2006-07-15 15:01 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-07-05 12:37 [Bug c++/28269] New: [4.2 regression] ICE on attribute for invalid template reichelt at gcc dot gnu dot org
2006-07-05 15:39 ` [Bug c++/28269] " pinskia at gcc dot gnu dot org
2006-07-09 19:55 ` patchapp at dberlin dot org
2006-07-09 20:00 ` lmillward at gcc dot gnu dot org
2006-07-15 15:00 ` lmillward at gcc dot gnu dot org
2006-07-15 15:01 ` lmillward 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).