------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-03 03:55 ------- Created an attachment (id=9659) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9659&action=view) patch which should fix it but I need to test it
This patch should fix it, basically instead of looking just for ";", we should look for a couple of things, a "-", "+", ";", or "@end". I added a new function to skip until there. ChangeLog: * c-parser.c (c_parser_skip_to_end_methodproto): New function. (c_parser_objc_methodproto): Instead of skipping till a ";". require a ";" and if that returns value, call c_parser_skip_to_end_methodproto. -- What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|UNCONFIRMED |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23709