Path: utzoo!attcan!uunet!husc6!cs.utexas.edu!sm.unisys.com!aero!campbell From: campbell@aero.ARPA (L. Andrew Campbell) Newsgroups: comp.lang.fortran Subject: Re: Are GOTOs restricted in Fortran 88 Summary: Jumps into DO's sometimes permitted Message-ID: <41017@aero.ARPA> Date: 10 Nov 88 20:38:36 GMT References: <4213@pitt.UUCP> <50500088@uxe.cso.uiuc.edu> Reply-To: campbell@aero.UUCP (L. Andrew Campbell) Organization: The Aerospace Corporation, El Segundo, CA Lines: 19 In article <50500088@uxe.cso.uiuc.edu> hirchert@uxe.cso.uiuc.edu writes: > >Debbie Whitfield(whit@pitt.UUCP) asks >>/* ---------- "Are GOTOs restricted in Fortran 88" ---------- */ > .... and he answers: >. FORTRAN 77 prohibited jumps into DO-loops. This restriction was retained in > Fortran 8x and extended to apply to the new forms of DO loops as well. >Kurt W. Hirchert hirchert@ncsa.uiuc.edu >National Center for Supercomputing Applications This is the 2nd time I have seen this statement made. Actually, one can jump into the lexical range of a DO statement, provided one has jumped out of the same DO. This is the old concept of "extended range" of a DO. The newer terminology is: one is permitted to jump into an "active" do (one currently being executed), and jumping out of a DO loop does not "inactivate" it. I checked this information against a recent vendor-supplied manual, not against the ANSI standard, but my recollection is that the ANSI standard permits the above (i.e. it is not a vendor extension).