[LLVMbugs] [Bug 8617] New: No warning for trivial cases of read of uninitialized variable
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Nov 15 11:34:44 PST 2010
http://llvm.org/bugs/show_bug.cgi?id=8617
Summary: No warning for trivial cases of read of uninitialized
variable
Product: clang
Version: 2.8
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: richard-llvm at metafoo.co.uk
CC: llvmbugs at cs.uiuc.edu
This testcase produces no warnings:
#include <iostream>
int main() { int i; std::cout << i; }
This testcase also produces no warnings:
#include <iostream>
int main() { int i; if (i) return 1; }
g++ produces -Wuninitialized warnings for both of these.
--
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