I have a feeling that this is related in some way to the advice not to rely on the value of the loop index on completion of a loop (although you can, allegedly, if you jump out of the loop -I'm far too conservative a programmer to even do that). I remember reading that some versions of Fortran exit the loop on completion with the index set to 0 or -1, or if you are lucky (!) to the maximum count +1. It seems that quite possibly FTN95 falls into the latter category.
Incidentally, I can see why the maximum value for the index might just be a concern with INTEGER*1, *2 or 4, but surely not with INTEGER8.
Or are you counting virus cells for Prof Ferguson at Imperial College?
My note to Paul is that it isn't the behaviour that is wrong, it's the fact that it isn't documented. (Or not easily discoverable).
Eddie