[LLVMbugs] [Bug 2707] New: Wrong Objective-C diagnostic (incompatible pointer types)

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Aug 22 03:11:44 PDT 2008


           Summary: Wrong Objective-C diagnostic (incompatible pointer
           Product: clang
           Version: unspecified
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Semantic Analyzer
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: thomascl at free.fr
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=1946)
 --> (http://llvm.org/bugs/attachment.cgi?id=1946)
test case

Processing -fsyntax-only on the attached source code, I get the following wrong

thomas$ clang -fsyntax-only MyClass.m 
MyClass.m:21:29: warning: incompatible pointer types sending 'CGColorRef',
expected 'NSColor *'
        [object setBackgroundColor:color];
1 diagnostic generated.

Clang seems to be confused by CGColorRef and NSColor *.
Using LLVM and Clang rev 55175.


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