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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs