>
>
> I have at least one compiler that produces a subscript-out-of-range error
> if A has dimension (1:10), A(:J) is used as an actual argument, J <= 0,
> and run-time subscript checking is on. I think this should be legal.
>
> On page 66 of the Fortran 90 standard, the paragraph immediately before
> 6.2.2.3.2 begins:
>
> "Note that a subscript in a subscript triplet need not be within the declared
> bounds for that dimension if all values used in selecting the array elements
> are within the declared bounds."
>
> Is this normative text? It's the "Note that" part that makes me uncertain.
>
Yes, it is. The non-normative text is in the appendices. I remember putting
this paragraph in to make the issue clear.
Best wishes,
John.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|