This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35584] overzealous warning: branch causes infinite loop
- From: "dfranke at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2008 00:33:25 -0000
- Subject: [Bug fortran/35584] overzealous warning: branch causes infinite loop
- References: <bug-35584-13648@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from dfranke at gcc dot gnu dot org 2008-03-15 00:33 -------
A less pessimistic warning would do ...
Index: resolve.c
===================================================================
--- resolve.c (revision 133233)
+++ resolve.c (working copy)
@@ -5596,7 +5596,7 @@ resolve_branch (gfc_st_label *label, gfc
if (code->here == label)
{
- gfc_warning ("Branch at %L causes an infinite loop", &code->loc);
+ gfc_warning ("Branch at %L may result in an infinite loop", &code->loc);
return;
}
--
dfranke at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|invalid warning: branch |overzealous warning: branch
|causes infinite loop |causes infinite loop
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35584