[LLVMbugs] [Bug 21171] New: Apple LLVM 6.0 (based on LLVM 3.5.0) hangs while compiling this code

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Oct 6 10:06:09 PDT 2014


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: unassignedclangbugs at nondot.org
          Reporter: elviss at elviss.lv
                CC: llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141006/4136e349/attachment.html>


More information about the llvm-bugs mailing list