This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/28446] GCC accepts invalid loop syntax
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Jul 2006 14:53:08 -0000
- Subject: [Bug c/28446] GCC accepts invalid loop syntax
- References: <bug-28446-12985@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu 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