Scope of implied-do index



ISTR reading in the F95 standard that the scope of the index
of an implied-do is limited to the implied-do. I can't locate
where I would have gotten that impression, so a pointer to
the F95 text would be much appreciated.

In particular, I interested in what the standard says about

integer i
real x(10)
do i = 1, 10
x = (/ (i, i=1, 10) /)
end do


--
Steve
http://troutmask.apl.washington.edu/~kargl/
.



Relevant Pages

  • Re: NAG, Sun, Compaq possible f95 bug
    ... question about scope, then that is the natural place to look. ... implied-DO in a DATA statement or an array constructor has the ... Elsewhere in the scoping unit, ... but need to stretch it out to the required essay length. ...
    (comp.lang.fortran)
  • Re: Array Constructors
    ... Scope of implied-do variables isn't the only way in which the behaviour ... If string is a character variable of length n, ... a data statement (not even if string is a structure component, ...
    (comp.lang.fortran)
  • Re: Array Constructors
    ... | Maine would have a chance to make a fool of himself" 8-)? ... the "scope" of IMPLICIT NONE? ... of my modules whenever I use k in an implied-DO of an initialization statement. ...
    (comp.lang.fortran)
  • Re: scope of implied-do variable
    ... says the scope of i in the implied-do in the line 2 array constructor ... inside the internal pure function i2c, ... Should I report a compiler bug, ...
    (comp.lang.fortran)
  • Re: Scope of array initialization do loops
    ... > Does the implied do loop have its own scope? ... the name of a variable in the scoping unit that includes the ... DATA statement or array constructor, ... they used to be) as to whether the use of an implied-do ...
    (comp.lang.fortran)