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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to