This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Official Fortran standards
- From: dewar at gnat dot com (Robert Dewar)
- To: gcc at gcc dot gnu dot org, mzpnet at directvinternet dot com, reg at dwf dot com
- Date: Sat, 22 Jun 2002 15:59:53 -0400 (EDT)
- Subject: Re: Official Fortran standards
>
> Well, the Fortran77 standard states:
> When a DO-loop becomes inactive, the DO-varible of the DO-loop
> retains its last defined value.
>
> So you get the current value if you jump out of the loop, or the next
> value (one increment greater than last) if you fall thru.
The last defined value could only mean the value the last time through the
loop. It certainly cannot be one greater since the loop might have an upper
bound equal to the highest allowed integer value.