[Bug fortran/20224] gfortran - flags error on strange, but correct f77 program

kargl at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Feb 27 08:49:00 GMT 2005


------- Additional Comments From kargl at gcc dot gnu dot org  2005-02-26 19:44 -------
This is illegal code with respect to F77.

>From ansi-x3dot9-1978-Fortran77.pdf

   11.10.8 Transfer into the Range of a Do-Loop

   Transfer of control into the range of a DO-loop from outside the range is not
   permitted.

I haven't looked in the F2003 standard, but I suspect it is also illegal.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20224



More information about the Gcc-bugs mailing list