[Bug c/39012] GCC accepts badly formatted while statement
pinskia at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Jan 28 22:17:00 GMT 2009
------- Comment #2 from pinskia at gcc dot gnu dot org 2009-01-28 22:17 -------
>while ( !b );
Is vaild code but should be warned about.
In fact with 4.3 and above we do get a warning with -W -Wall:
t.cc: In function 'void g()':
t.cc:13: warning: suggest a space before ';' or explicit braces around empty
body in 'while' statement
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39012
More information about the Gcc-bugs
mailing list