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

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jul 9 15:30:17 PDT 2012


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

Fariborz Jahanian <fjahanian at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Fariborz Jahanian <fjahanian at apple.com> 2012-07-09 17:30:17 CDT ---
FYI, Jordan Rose changed the error into a warning and updated the document.

s.m:2:17: warning: direct comparison of a string literal has undefined behavior
[-Wobjc-literal-compare]
  return @"HHH" == @"JJJ";
         ~~~~~~ ^
1 warning generated.

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