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

Reply via email to