This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/21912] Wrong implied do-loop
- From: "tobi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jun 2005 10:59:00 -0000
- Subject: [Bug fortran/21912] Wrong implied do-loop
- References: <20050604142956.21912.tkoenig@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tobi at gcc dot gnu dot org 2005-06-05 10:58 -------
Slightly reduced testcase:
[tobi@marktplatz tests]$ cat pr21912.f90
program main
call foo(5)
end program main
subroutine foo(n)
implicit none
integer :: n, i
integer :: k(5)
k = (/(i,i=n,1,-1)/)
print *, k
end subroutine foo
[tobi@marktplatz tests]$ ./a.out
1 0 134519120 9 134513546
[tobi@marktplatz tests]$
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21912