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

           Summary: assertion error in infinite loop
           Product: new-bugs
           Version: trunk
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


The following small program caused assertion failure at O1 and above. It's seen
on Ubuntu Jaunty on x86.

ja...@lajiao:~/rp-trunk/tests$ clang -v
clang version 1.1 (trunk 85811)
Target: i386-pc-linux-gnu

=============================================
#include <stdint.h>
#include <assert.h>

int32_t* func_16(int** p_18, int* p_20)
{
    uint32_t i;
    for (i = 6; i >= 0; i++)
    {
        assert (p_18 == 0); 
        assert (p_20 == 0);      // fail!!!
    }
    return 0;
}

/* ---------------------------------------- */
int main(void)
{
    func_16(0, 0);
    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

Reply via email to