[LLVMbugs] [Bug 3932] New: [ObjC]Type defined as 'id' is not recognized as a valid object type.

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Apr 3 04:09:36 PDT 2009


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: unassignedclangbugs at nondot.org
        ReportedBy: devlists at shadowlab.org
                CC: llvmbugs at cs.uiuc.edu


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.



More information about the llvm-bugs mailing list