You can always go to the "continue" statement that terminates a do
loop. That's the reason the continue statement exists. The problem
happens if you are outside of the do loop and then go to the continue,
that isn't allowed.
In my fortran programming, I always used continue statements as it was
easier to think about it.
As for continue statements outside of do loops, you can go to them any
time you like.
Note that in this context, "go to" includes anything that branches, go
to, computed go to assigned goto, three statement if's, and go to's
that are the object of logical if's (the latter aren't supported on the
Gfortran likes to complain about three statement if's in general, as
they are in the "not recommended" list (there are other things as
You might want to check the actual error message, gfortran usually has
very specific messages.
Tom Watson <t...@johana.com
> You received this message because you are subscribed to the Google
> Groups "IBM1130" group.
> To unsubscribe from this group and stop receiving emails from it,
> send an email to ibm1130+u...@googlegroups.com
> To view this discussion on the web visit