[Bug fortran/33686] FORALL loop gives wrong result
pault at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Oct 10 06:50:00 GMT 2007
------- Comment #8 from pault at gcc dot gnu dot org 2007-10-10 06:50 -------
(In reply to comment #7)
Hmmm, that's not right, is it? It should be
PROGRAM TST
IMPLICIT NONE
INTEGER :: P(4),I
integer, allocatable :: Q(:)
P = (/2,4,1,3/)
allocate (Q(size(P)))
Q = P
FORALL(I=1:4)
P(Q(I)) = I
END FORALL
deallocate (Q)
PRINT *, P
END PROGRAM TST
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33686
More information about the Gcc-bugs
mailing list