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

             Bug #: 14576
           Summary: trap generated in code that shouldn't trap
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Created attachment 9677
  --> http://llvm.org/bugs/attachment.cgi?id=9677
testcase

The attached testcase works in clang 3.1, but fails in 3.2 rc3. Steps to
reproduce:

1. Unpack the archive
2. clang++ a.cpp -I. -std=c++11 -c -emit-llvm
3. llvm-dis a.o
4. Open a.o.ll in an editor and search for the definition of the function
@_ZN10emscripten6class_I9ValHolderE11constructorIJNS_3valEEEERS2_v

That function contains

  call void @llvm.trap()

which should not be there.

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