This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/23709] [4.1 Regression] error recovery is not smart enough
- 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: 3 Sep 2005 03:55:23 -0000
- Subject: [Bug objc/23709] [4.1 Regression] error recovery is not smart enough
- References: <20050903035103.23709.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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