[multiple changes]
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 25 Nov 2016 12:23:43 +0000 (12:23 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 25 Nov 2016 12:23:43 +0000 (12:23 +0000)
commit3cae214f76deaf8271e26b094d6d14a31e537e00
tree8fab2ee64998246794f0a8a8a5297074ab5045fd
parentae22bc5d4ad22aa0a8f21323bb576e6485ffbd4d
[multiple changes]

2016-11-25  Andre Vehreschild  <vehre@gcc.gnu.org>
Paul Thomas  <pault@gcc.gnu.org>

PR fortran/78293
* trans-expr.c (gfc_conv_procedure_call): Prepend deallocation
of alloctable components to post, rather than adding to
se->post.
* trans-stmt.c (gfc_trans_allocate): Move deallocation of expr3
allocatable components so that all expr3s are visited.

2016-11-25  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/78293
* gfortran.dg/allocatable_function_10.f90: New test.
* gfortran.dg/class_array_15.f03: Increase builtin_free count
from 11 to 12.

From-SVN: r242875
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocatable_function_10.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/class_array_15.f03