[LLVMbugs] [Bug 13276] New: Spurious errors for Objective-C string comparison

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 5 04:58:44 PDT 2012


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

             Bug #: 13276
           Summary: Spurious errors for Objective-C string comparison
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: csdavec at swan.ac.uk
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Clang now errors on attempts to compare Objective-C string literals.  This
causes a lot of problems because this is a very common pattern, where you first
test for pointer equality in the caller and then call -isEqual: if the pointer
comparison fails.  A very common case of this is when comparing against
specific keys, but lots of macros also include an == nil guard clause which now
generates an error, when previously it generated valid code (which the
optimiser removed).

-- 
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