[Bug c/28446] GCC accepts invalid loop syntax

2006-07-20 Thread falk at debian dot org
--- Comment #2 from falk at debian dot org 2006-07-20 14:53 --- However, gcc chould actually warn about while loops with an empty body where the exit condition has no side effects. This might be slightly difficult, though. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28446

[Bug c/28446] GCC accepts invalid loop syntax

2006-07-20 Thread schwab at suse dot de
--- Comment #1 from schwab at suse dot de 2006-07-20 13:41 --- This is a perfectly valid program. `while(i < 10);' is a statement of its own, independent of the preceding loop. -- schwab at suse dot de changed: What|Removed |Added -