re PR fortran/33749 (Wrong evaluation of expressions in lhs of assignment statements)
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 21 Oct 2007 18:10:00 +0000 (18:10 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 21 Oct 2007 18:10:00 +0000 (18:10 +0000)
commitc54224622d3b72777aee02f19e34578102ac0574
tree8163e6bfc15353c46b6961d460e5ee335728259e
parent68d9cb44aec1cc792c19cbb9f879309f5e2eeb33
re PR fortran/33749 (Wrong evaluation of expressions in lhs of assignment statements)

2007-10-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/33749
* resolve.c (resolve_ordinary_assign): New function that takes
the code to resolve an assignment from resolve_code. In
addition, it makes a temporary of any vector index, on the
lhs, using gfc_get_parentheses.
(resolve_code): On EXEC_ASSIGN call the new function.

2007-10-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/33749
* gfortran.dg/assign_9.f90: New test.

From-SVN: r129539
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/assign_9.f90 [new file with mode: 0644]