[LLVMbugs] [Bug 12804] New: Crash on ObjC NSString boxed expressions if +stringWithUTF8String: is missing

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 11 21:58:43 PDT 2012


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

             Bug #: 12804
           Summary: Crash on ObjC NSString boxed expressions if
                    +stringWithUTF8String: is missing
           Product: clang
           Version: trunk
          Platform: Macintosh
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jediknil at belkadan.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


% cat test.m                                                     
@interface NSString
@end

id test(const char *x) {
  return @(x);
}

% myclang -fsyntax-only test.m                                   
Assertion failed: (StringWithUTF8StringMethod && "StringWithUTF8StringMethod
should not be NULL"), function BuildObjCBoxedExpr, file SemaExprObjC.cpp, line
475.


NSNumber boxed expressions seem OK, though I only tried with ints. Numeric
literals are also fine (@1).

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