re PR fortran/48462 (realloc on assignment: matmul Segmentation Fault with Allocatabl...
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 29 Apr 2011 20:26:56 +0000 (20:26 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 29 Apr 2011 20:26:56 +0000 (20:26 +0000)
commit7097b0410ed48d3b7a5099e12fcec14b80f86910
tree60ed47ddac407041385577f71d503609d3a92443
parentfdf390e6c61f928da9e2b6a7af63c277e2d3b0eb
re PR fortran/48462 (realloc on assignment: matmul Segmentation Fault with Allocatable Array)

2011-04-29  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/48462
* trans-expr.c (arrayfunc_assign_needs_temporary): Deal with
automatic reallocation when the lhs is a target.

PR fortran/48746
* trans-expr.c (fcncall_realloc_result): Make sure that the
result dtype field is set before the function call.

2011-04-29  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/48462
* gfortran.dg/realloc_on_assign_7.f03: Modify to test for lhs
being a target.

PR fortran/48746
* gfortran.dg/realloc_on_assign_7.f03: Add subroutine pr48746.

From-SVN: r173185
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/realloc_on_assign_7.f03