public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/23709] New: [4.1 Regression] error recovery is not smart enough
@ 2005-09-03 3:51 pinskia at gcc dot gnu dot org
2005-09-03 3:55 ` [Bug objc/23709] " pinskia at gcc dot gnu dot org
2005-09-03 18:11 ` pinskia at gcc dot gnu dot org
0 siblings, 2 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-03 3:51 UTC (permalink / raw)
To: gcc-bugs
Take the following example:
@interface A
+(void)C:b {}
@end
@implementation A
+(void)C:b
{
*b;
}
@end
--
With 4.1, we get currently get:
t.m:2: error: expected ';' before '{' token
But that means we don't get the error message about dereferencing pointer to incomplete type.
With 3.3, we got:
t.m:2: error: parse error before '{' token
t.m: In function `+[A C:]':
t.m:8: error: dereferencing pointer to incomplete type
--
Summary: [4.1 Regression] error recovery is not smart enough
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: minor
Priority: P2
Component: objc
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23709
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug objc/23709] [4.1 Regression] error recovery is not smart enough
2005-09-03 3:51 [Bug objc/23709] New: [4.1 Regression] error recovery is not smart enough pinskia at gcc dot gnu dot org
@ 2005-09-03 3:55 ` pinskia at gcc dot gnu dot org
2005-09-03 18:11 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-03 3:55 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug objc/23709] [4.1 Regression] error recovery is not smart enough
2005-09-03 3:51 [Bug objc/23709] New: [4.1 Regression] error recovery is not smart enough pinskia at gcc dot gnu dot org
2005-09-03 3:55 ` [Bug objc/23709] " pinskia at gcc dot gnu dot org
@ 2005-09-03 18:11 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-03 18:11 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-03 18:11 -------
Patch posted here: <http://gcc.gnu.org/ml/gcc-patches/2005-09/msg00175.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |09/msg00175.html
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23709
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug objc/23709] [4.1 Regression] error recovery is not smart enough
[not found] <bug-23709-6528@http.gcc.gnu.org/bugzilla/>
2005-10-16 1:37 ` pinskia at gcc dot gnu dot org
2005-10-16 1:37 ` pinskia at gcc dot gnu dot org
@ 2005-10-30 23:21 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-30 23:21 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P5
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23709
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug objc/23709] [4.1 Regression] error recovery is not smart enough
[not found] <bug-23709-6528@http.gcc.gnu.org/bugzilla/>
@ 2005-10-16 1:37 ` pinskia at gcc dot gnu dot org
2005-10-16 1:37 ` pinskia at gcc dot gnu dot org
2005-10-30 23:21 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-16 1:37 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|pinskia at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|ASSIGNED |UNCONFIRMED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23709
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug objc/23709] [4.1 Regression] error recovery is not smart enough
[not found] <bug-23709-6528@http.gcc.gnu.org/bugzilla/>
2005-10-16 1:37 ` pinskia at gcc dot gnu dot org
@ 2005-10-16 1:37 ` pinskia at gcc dot gnu dot org
2005-10-30 23:21 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-16 1:37 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|2005-10-16 01:16:26 |2005-10-16 01:37:42
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23709
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-10-30 23:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-03 3:51 [Bug objc/23709] New: [4.1 Regression] error recovery is not smart enough pinskia at gcc dot gnu dot org
2005-09-03 3:55 ` [Bug objc/23709] " pinskia at gcc dot gnu dot org
2005-09-03 18:11 ` pinskia at gcc dot gnu dot org
[not found] <bug-23709-6528@http.gcc.gnu.org/bugzilla/>
2005-10-16 1:37 ` pinskia at gcc dot gnu dot org
2005-10-16 1:37 ` pinskia at gcc dot gnu dot org
2005-10-30 23:21 ` pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).