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

            Bug ID: 21171
           Summary: Apple LLVM 6.0 (based on LLVM 3.5.0) hangs while
                    compiling this code
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Compiling the following code with Apple's LLVM 6.0 (Xcvode 6) hangs the clang.
Optimisation must be enabled.

Running "clang -O1 -c foo.c" on the following code hangs the clang forever.
This doesn't happen with original LLVM and other LLVM versions.

void foo()
{
        int a = 1;

        while (1)
        {
                if (a)
                {
                        label:
                        a += 2;
                        a *= (long)&&label;
                }
        }
}

-- 
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