I am wondering what is supposed to be the behavior of a fortran program that uses pointer variables as loop counts? For instance using gfortran, this program:
program foo
integer, pointer :: x
integer, target :: y
x => y
do x=0,10
y = 100
print*, "hello"
enddo
end program
became an infinite loop when executed. Is that supposed to happen?