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

            Bug ID: 16557
           Summary: -fno-exceptions behavior does not match GCC (or,
                    -fcheck-new is not implemented)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Created attachment 10824
  --> http://llvm.org/bugs/attachment.cgi?id=10824&action=edit
Test case

The attached test case, when compiled with "gcc -fno-exceptions -fcheck-new"
prints nothing and exits with a zero status.  When compiled with llvm/clang 3.3
and ToT (with the same arguments), it segfaults in the member initializer.

Ideally, when using -fno-exceptions, clang would emit code to check the return
value of "new" before calling the constructor, regardless of that operator's
exception specification.

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