Skip to content

Wrong Objective-C diagnostic (incompatible pointer types) #3079

@llvmbot

Description

@llvmbot
Bugzilla Link 2707
Resolution FIXED
Resolved on Mar 12, 2010 00:57
Version unspecified
OS MacOS X
Attachments test case
Reporter LLVM Bugzilla Contributor
CC @efriedma-quic,@tkremenek

Extended Description

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


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.

Thomas

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions