This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13268] ICE on illegal code: bool foo(const operator&);
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Dec 2003 20:42:56 -0000
- Subject: [Bug c++/13268] ICE on illegal code: bool foo(const operator&);
- References: <20031202062909.13268.fw@deneb.enyo.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-12-30 20:42 -------
The last part of the patch is needed:
Index: decl.c
============================================================
=======
RCS file: /cvs/gcc/gcc/gcc/cp/decl.c,v
retrieving revision 1.1170
diff -u -p -r1.1170 decl.c
--- decl.c 30 Dec 2003 12:18:26 -0000 1.1170
+++ decl.c 30 Dec 2003 20:41:50 -0000
@@ -8623,7 +8623,7 @@ grokparms (tree first_parm)
split_specs_attrs (TREE_PURPOSE (decl), &specs, &attrs);
decl = grokdeclarator (TREE_VALUE (decl), specs,
PARM, init != NULL_TREE, &attrs);
- if (! decl || TREE_TYPE (decl) == error_mark_node)
+ if (! decl || !TREE_TYPE (decl) || TREE_TYPE (decl) == error_mark_node )
continue;
if (attrs)
--
What |Removed |Added
----------------------------------------------------------------------------
Status|REOPENED |ASSIGNED
Last reconfirmed|2003-12-24 17:43:00 |2003-12-30 20:42:56
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13268