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 objc/28049] [4.1/4.2 regression] ICE on single + or -



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


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