This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/21912] Wrong implied do-loop


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]