http://llvm.org/bugs/show_bug.cgi?id=12033
Bug #: 12033
Summary: Generated code segfaults with optimizations
Product: clang
Version: trunk
Platform: PC
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
With the following snippet, and optimization level at -O1 or anything higher,
the generated executable segfaults.
Clang&llvm is built from r150825
#include <limits.h>
void f()
{
for(int i = 0; i <= INT_MAX; ++i)
{
}
}
int main()
{
f();
return 0;
}
--
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