This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/13268] ICE on illegal code: bool foo(const operator&);


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]