------- Comment #2 from jellegeerts at gmail dot com 2010-08-31 20:23 ------- I already reasoned that that might have been the case, but it seems false, because if I compile the following snippet with GCC 4.5.1 with the command `gcc newtest.c -std=c99 -Wall', I get no warning about the uninitialized use of the `i' variable (only when I add `-O' I get the warning).
#include <stdio.h> int main(void) { for (int i; i < 32; ++i) { printf("%d\n", i); } return 0; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45468