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: "kargl 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 18:58:11 -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 #6 from kargl at gcc dot gnu dot org 2008-12-15 18:58 -------
(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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38507