[LLVMbugs] [Bug 18300] New: clang crashed when compile ObjC++ code with ternary operator and modern ObjC syntax

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Dec 21 01:24:16 PST 2013


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

            Bug ID: 18300
           Summary: clang crashed when compile ObjC++ code with ternary
                    operator and modern ObjC syntax
           Product: clang
           Version: 3.3
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: xlchen1291 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11769
  --> http://llvm.org/bugs/attachment.cgi?id=11769&action=edit
stderr output

When compiling this code, clang crashed. Works if file renamed to test.m (ObjC
code without C++).

clang test.mm -lObjC

int main()
{
    id d1 = 0;
    id d2 = 0;
    id key = 0;
    id obj = d1[key] ?: d2[key];
    return 0;
}


clang --version
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131221/d2a87d20/attachment.html>


More information about the llvm-bugs mailing list