Take the following code:
typedef struct objc_class *Class;
@interface a
{
    Class isa;
}
@end
@implementation a
- (int)isEqual:anObject
{
  return self==anObject;
}
@end


We get an type mismatch in the EQ_EXPR which is wrong.
I will attach the patch to find this in PR 22368

-- 
           Summary: Objc produces mis-match (non compatible) types in
                    EQ_EXPR
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          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
OtherBugsDependingO 22368
             nThis:


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22474

Reply via email to