This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]