Re: Scope of implied-do index




This is done in the backend, which is well beyond parsing and
symbol resolution. It appears that gfortran needs to mangle the
do-variable of the implied-do.

Be careful. I can assure you that it's very tricky code to get right.
Don't forget to do it for FORALL statement constructs as well.

integer, parameter :: i = 10
real :: x(10)
x = (/ (i, i=1, 10) /)

There was a problem with this example in g95. I've got it fixed now.

Thanks,
Andy

.



Relevant Pages

  • Re: Scope of implied-do index
    ... It appears that gfortran needs to mangle the ... I can assure you that it's very tricky code to get right. ... There are 2 or 3 outstanding bugs associated with implied-do. ...
    (comp.lang.fortran)
  • Re: God help us
    ... No, *YOU* be careful what you say - you've implied elsewhere, that you have ... can assure you, that if this is the case, you will have overstepped a big ... mark, and whilst I won't look to stalk you down away from here in the same ...
    (uk.local.kent)