This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Fix PR17708: Fix jumps to END DO label
- From: Paul Brook <paul at codesourcery dot com>
- To: fortran at gcc dot gnu dot org
- Cc: Tobias Schlüter <tobias dot schlueter at physik dot uni-muenchen dot de>,patch <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 4 Oct 2004 16:36:40 +0100
- Subject: Re: [gfortran] Fix PR17708: Fix jumps to END DO label
- Organization: CodeSourcery
- References: <415994DB.3060605@physik.uni-muenchen.de>
On Tuesday 28 September 2004 17:44, Tobias Schlüter wrote:
> END DO is different from END IF and END SELECT in that, if it is the target
> of a branch execution remains within the construct it encloses, i.e. the
> loop should continue looping. We treated it the same as END IF and END
> SELECT, thereby creating the breakage reported in the PR. The attached
> simple patch fixes this by generating the label within the loop, instead of
> behind it. We now also correctly warn about the use of this obsolescent
> feature.
>
> Built and tested. New testcase attached.
But no Changelog :-)
Ok once you write one.
Paul