Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!pioneer.arc.nasa.gov!maine From: maine@pioneer.arc.nasa.gov (Richard Edwin Maine D-OFA) Newsgroups: comp.lang.fortran Subject: Re: DO loops, anyone? Summary: belongs to both loops, so the code is illegal Message-ID: <22754@ames.arc.nasa.gov> Date: 15 Mar 89 05:20:04 GMT References: <458@orange19.qtp.ufl.edu> <28506@sgi.SGI.COM> Sender: usenet@ames.arc.nasa.gov Reply-To: maine@pioneer.arc.nasa.gov.UUCP (Richard Edwin Maine D-OFA) Organization: NASA-Ames Research Center Lines: 117 Calvin Vu of Silicon Graphics gives a long-winded explanation of why he thinks the following piece of code is legal. << PROGRAM LOOP << IGO = 1 << DO 501 I = 1, 10 << WRITE (6,*) 'OUTER LOOP, I =',I << IF (IGO .NE. 0) GOTO 501 << DO 501 J = 1, 5 << WRITE (6,*) 'INNER LOOP, J=',J << 501 CONTINUE << STOP << END His whole argument is based on the statement that: 5) as the terminating condition so I can't guarantee