[LLVMbugs] [Bug 16347] New: Absurd program results in illegal hardware instruction under optimization

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 17 08:37:58 PDT 2013


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

            Bug ID: 16347
           Summary: Absurd program results in illegal hardware instruction
                    under optimization
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: so.townsend at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Created attachment 10691
  --> http://llvm.org/bugs/attachment.cgi?id=10691&action=edit
Try removing the comment, it works then.

The attached program does not fail to compile but emits invalid instructions
when compiled under

clang++ -O4 -std=c++11
clang++ -O3 -std=c++11
clang++ -O2 -std=c++11

clang++ -O1 -std=c++11 results in a proper segmentation fault.

otool -Vt dump 
----------------------

Optimizer level 4:
(__TEXT,__text) section
_main:
0000000100000f70        ud2

-- 
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/20130617/94461f17/attachment.html>


More information about the llvm-bugs mailing list