------- Comment #34 from tkoenig at gcc dot gnu dot org 2009-08-15 10:57 ------- (In reply to comment #33)
> Actually, we're buggy there, and my patch fixes it. I'm just now trying
> out testcases.
Are we really buggy?
$ cat gaga.f90
n=10
do i=1,n
call foo(n)
print *,i
end do
end
subroutine foo(n)
n=4
end
$ gfortran -O2 gaga.f90 && ./a.out
1
2
3
4
5
6
7
8
9
10
$ gfortran-4.4 -O2 gaga.f90 && ./a.out
1
2
3
4
5
6
7
8
9
10
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31593
