This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38507] Bogus Warning: Deleted feature: GOTO jumps to END of construct
- From: "tobi 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 Dec 2008 19:16:36 -0000
- Subject: [Bug fortran/38507] Bogus Warning: Deleted feature: GOTO jumps to END of construct
- References: <bug-38507-6318@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from tobi at gcc dot gnu dot org 2008-12-15 19:16 -------
(In reply to comment #6)
> (In reply to comment #5)
> > According to your readings, is the following valid?
> > DO 10 I=1,10
> > IF (.TRUE.) THEN
> > 10 END IF
> > END
> >
>
> See constraint C825, page 165 in F2003 and restriction R214
> on page 11.
>
> The above is an nonblock do construction and the label must
> appear on an action-stmt. end-if is not listed among the
> action statements, so I would conclude the above is invalid.
>
Thanks, I had missed the action-stmt requirement. I think I know how to fix
this, then.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38507