[LLVMbugs] [Bug 12897] New: Clang in an infinite loop ?

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 20 09:29:08 PDT 2012


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

             Bug #: 12897
           Summary: Clang in an infinite loop ?
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: merkil at savhon.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Clang (3.0 and 3.2 as of 157158) seems to go into an infinite loop while
compiling this function at -O1 and higher :

$ cat file.c
unsigned char a, b, c;

void func(void)
{
    a = (c | 1);
    b = (1 & ~a);
    a + b;
    a = 3 * (a && b);
}

$ ~/clang/build/Release+Asserts/bin/clang file.c -O1
file.c:7:7: warning: expression result unused [-Wunused-value]
    a + b;
    ~ ^ ~
(and never returns)

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