[LLVMbugs] [Bug 10358] New: -Wuninitialized false negative for use inside a loop

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Jul 14 10:41:14 PDT 2011


           Summary: -Wuninitialized false negative for use inside a loop
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: matthewbg at google.com
                CC: llvmbugs at cs.uiuc.edu

void f(int i);
void g() {
  int j;
  for (int k = 0; k < 10; ++k)

Clang doesn't warn about the uninitialized use of 'j'. GCC (4.4.3) says "may be
used uninitialized" at -O0 and "is used uninitialized" at -O2.

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