This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/28049] [4.1/4.2 regression] ICE on single + or -
- 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: 17 Aug 2006 05:32:13 -0000
- Subject: [Bug objc/28049] [4.1/4.2 regression] ICE on single + or -
- References: <bug-28049-1771@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-08-17 05:32 -------
Here is the patch which I am testing:
Index: c-parser.c
===================================================================
--- c-parser.c (revision 116204)
+++ c-parser.c (working copy)
@@ -6149,7 +6149,10 @@ c_parser_objc_method_decl (c_parser *par
parms = chainon (parms,
build_tree_list (NULL_TREE, grokparm (parm)));
}
- sel = list;
+ if (list)
+ sel = list;
+ else
+ sel = error_mark_node;
}
return objc_build_method_signature (type, sel, parms, ellipsis);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28049