http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46853
--- Comment #2 from gcc-bugs at nospam dot pz.podzone.net 2010-12-09 08:36:46
UTC ---
The variable can be optimised away in the WHILE_LOOP test case so in effect the
variable 'foo' is never used uninitialised.
However with the FOR_LOOP
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46853
Summary: gcc fails to warn about uninitialized variable
Product: gcc
Version: 4.4.5
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassig