[LLVMbugs] [Bug 12033] New: Generated code segfaults with optimizations

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Feb 18 12:56:08 PST 2012


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: unassignedclangbugs at nondot.org
        ReportedBy: scoopr at iki.fi
                CC: llvmbugs at cs.uiuc.edu
    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.



More information about the llvm-bugs mailing list