------- 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