http://llvm.org/bugs/show_bug.cgi?id=3932

           Summary: [ObjC]Type defined as 'id' is not recognized as a valid
                    object type.
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


When defining a new type as an id, this new type is not recognized as a valid
id (objc object) by clang.
This is particulary annoying when this type is used where an objc object is
required, as clang will report an error where gcc does not.

------------- test.m  --------------
typedef id BYObjectIdentifier;

@interface Foo  {
  void *isa;
}

@property(copy) BYObjectIdentifier identifier;

@end

------------------------

clang -c test.m
error: property with 'copy' attribute must be of object type
    @property(copy) BYObjectIdentifier identifier;


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to