public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19063] New: [3.4/4.0 regresion] ICE on invalid template parameter
@ 2004-12-17 23:18 reichelt at gcc dot gnu dot org
2004-12-17 23:20 ` [Bug c++/19063] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-12-17 23:18 UTC (permalink / raw)
To: gcc-bugs
The following testcase causes an ICE since gcc 3.4.0:
===================================
template<operator> struct A {};
===================================
PR13268B.cc:5: error: expected identifier before 'operator'
PR13268B.cc:5: error: declaration of 'operator>' as non-function
PR13268B.cc:5: internal compiler error: tree check: expected class
'declaration', have 'type' (void_type) in process_template_parm, at cp/pt.c:2318
Please submit a full bug report, [etc.]
The bug is similar to PR13268 in that grokdeclarator returns values that
the caller cannot handle gracefully.
But in this case we actually have a regression.
Btw, if an error occurs, grokdeclarator might be returning 0 (which should
probably be NULL_TREE), error_mark_node (which is not documented) or
void_type_node (even if the caller expects a declaration as in this bug)
or ...
Is this intended, or is some heavy cleanup required?
--
Summary: [3.4/4.0 regresion] ICE on invalid template parameter
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=19063
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19063] [3.4/4.0 regresion] ICE on invalid template parameter
2004-12-17 23:18 [Bug c++/19063] New: [3.4/4.0 regresion] ICE on invalid template parameter reichelt at gcc dot gnu dot org
@ 2004-12-17 23:20 ` pinskia at gcc dot gnu dot org
2004-12-21 20:59 ` mmitchel at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-17 23:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-17 23:20 -------
: Search converges between 2002-12-14-trunk (#159) and 2002-12-29-trunk (#160).
Confirmed.
--
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2004-12-17 23:20:38
date| |
Target Milestone|--- |3.4.4
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19063
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19063] [3.4/4.0 regresion] ICE on invalid template parameter
2004-12-17 23:18 [Bug c++/19063] New: [3.4/4.0 regresion] ICE on invalid template parameter reichelt at gcc dot gnu dot org
2004-12-17 23:20 ` [Bug c++/19063] " pinskia at gcc dot gnu dot org
@ 2004-12-21 20:59 ` mmitchel at gcc dot gnu dot org
2004-12-22 3:39 ` [Bug c++/19063] [3.4 " mmitchel at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-12-21 20:59 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-12-21 20:59 -------
Working on a fix.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mark at codesourcery dot com
|dot org |
Status|NEW |ASSIGNED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19063
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19063] [3.4 regresion] ICE on invalid template parameter
2004-12-17 23:18 [Bug c++/19063] New: [3.4/4.0 regresion] ICE on invalid template parameter reichelt at gcc dot gnu dot org
2004-12-17 23:20 ` [Bug c++/19063] " pinskia at gcc dot gnu dot org
2004-12-21 20:59 ` mmitchel at gcc dot gnu dot org
@ 2004-12-22 3:39 ` mmitchel at gcc dot gnu dot org
2005-05-19 17:24 ` mmitchel at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2004-12-22 3:39 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2004-12-22 03:39 -------
Fixed in GCC 4.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|[3.4/4.0 regresion] ICE on |[3.4 regresion] ICE on
|invalid template parameter |invalid template parameter
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19063
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19063] [3.4 regresion] ICE on invalid template parameter
2004-12-17 23:18 [Bug c++/19063] New: [3.4/4.0 regresion] ICE on invalid template parameter reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2004-12-22 3:39 ` [Bug c++/19063] [3.4 " mmitchel at gcc dot gnu dot org
@ 2005-05-19 17:24 ` mmitchel at gcc dot gnu dot org
2005-08-05 21:01 ` cvs-commit at gcc dot gnu dot org
2005-08-05 21:04 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-05-19 17:24 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|3.4.4 |3.4.5
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19063
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19063] [3.4 regresion] ICE on invalid template parameter
2004-12-17 23:18 [Bug c++/19063] New: [3.4/4.0 regresion] ICE on invalid template parameter reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-05-19 17:24 ` mmitchel at gcc dot gnu dot org
@ 2005-08-05 21:01 ` cvs-commit at gcc dot gnu dot org
2005-08-05 21:04 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-08-05 21:01 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-08-05 21:01 -------
Subject: Bug 19063
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: mmitchel@gcc.gnu.org 2005-08-05 21:01:47
Modified files:
gcc/cp : ChangeLog name-lookup.c
Log message:
* name-lookup.c (pushtag): Remove accidental commit from:
2004-12-21 Mark Mitchell <mark@codesourcery.com>
PR c++/19063
* decl.c (grokdeclarator): Return error_mark_node, not
void_type_node, to indicate errors.
* parser.c (cp_parser_template_parameter_list): Robustify.
(cp_parser_template_parameter): Likewise.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4839&r2=1.4840
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/name-lookup.c.diff?cvsroot=gcc&r1=1.133&r2=1.134
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19063
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/19063] [3.4 regresion] ICE on invalid template parameter
2004-12-17 23:18 [Bug c++/19063] New: [3.4/4.0 regresion] ICE on invalid template parameter reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-08-05 21:01 ` cvs-commit at gcc dot gnu dot org
@ 2005-08-05 21:04 ` mmitchel at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-08-05 21:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From mmitchel at gcc dot gnu dot org 2005-08-05 21:04 -------
*** Bug 13268 has been marked as a duplicate of this bug. ***
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |fw at deneb dot enyo dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19063
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-08-05 21:04 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-17 23:18 [Bug c++/19063] New: [3.4/4.0 regresion] ICE on invalid template parameter reichelt at gcc dot gnu dot org
2004-12-17 23:20 ` [Bug c++/19063] " pinskia at gcc dot gnu dot org
2004-12-21 20:59 ` mmitchel at gcc dot gnu dot org
2004-12-22 3:39 ` [Bug c++/19063] [3.4 " mmitchel at gcc dot gnu dot org
2005-05-19 17:24 ` mmitchel at gcc dot gnu dot org
2005-08-05 21:01 ` cvs-commit at gcc dot gnu dot org
2005-08-05 21:04 ` mmitchel 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).