[Bug fortran/38135] FORALL gives wrong result

2008-11-15 Thread tkoenig at gcc dot gnu dot org
--- Comment #2 from tkoenig at gcc dot gnu dot org 2008-11-15 17:19 --- $ cat foo.f90 integer, parameter :: N = 3 integer A(N,N) A(1:N,1:N)=reshape(A(1:0,1),(/N,N/),reshape((/1/),(/N+1/),(/2/))) write(*,'(3i5)') A write(*,'(4i5)') reshape([1],[N+1],[0]) end $ gfortran -fbounds-check foo.

[Bug fortran/38135] FORALL gives wrong result

2008-11-15 Thread burnus at gcc dot gnu dot org
--- Comment #1 from burnus at gcc dot gnu dot org 2008-11-15 16:10 --- Using A(1:N,1:N)=reshape(A(1:0,1),(/N,N/),reshape((/1/),(/N+1/),(/2/))) the program is a Fortran 95 program, which also works with NAG f95 and openf95. -> Blocking 32834 -- burnus at gcc dot gnu dot org changed: