[LLVMbugs] [Bug 18678] New: Invalid code generated with the -fno-elide-constructors flag

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jan 30 15:02:48 PST 2014


            Bug ID: 18678
           Summary: Invalid code generated with the
                    -fno-elide-constructors flag
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ali.baharev at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 11983
  --> http://llvm.org/bugs/attachment.cgi?id=11983&action=edit
source file needed to reproduce the bug report

Disclaimer: information taken from 

The code in the attachment works as expected with gcc. 

If the -fno-elide-constructors flag is added, the clang generated program
crashes with a core dump.

If the dummy int member is commented out, we see a bogus output.

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/20140130/357ebaa0/attachment.html>

More information about the llvm-bugs mailing list