http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58823
Bug ID: 58823 Summary: Uninitialized variable warning is missing Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: nocannedmeat at gmail dot com Command line. gcc -W -Wall -Warray-bounds -pedantic -DSHOW_BUG=1 -c -o gcc-warn-bug gcc-warn-bug.c Version: gcc.exe (rev2, Built by MinGW-builds project) 4.8.0 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Source file: gcc-warn-bug.c #ifndef SHOW_BUG # define SHOW_BUG 1 /* set to 0 to show the expected results */ #endif float test() { float x; int y = 1; #if SHOW_BUG while( y ) { #endif x = x + 0.1f; y = 0; #if SHOW_BUG } #endif ( void )y; return x; }