re PR fortran/66082 (memory leak with automatic array dummy argument with derived...
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 26 May 2015 10:20:41 +0000 (10:20 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 26 May 2015 10:20:41 +0000 (10:20 +0000)
commit1b961de9db0b7ffb8d7f4614ddf61faf31a544a5
tree1b275d36c59aaa9239bd4cce6c1c426681fc6cd5
parent4a72a6ddd2e9b5d425f53c4e4e99f1d66ca7c46b
re PR fortran/66082 (memory leak with automatic array dummy argument with derived type array constructor actual argument)

2015-05-26  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/66082
* trans-array.c (gfc_conv_array_parameter): Ensure that all
non-variable arrays with allocatable components have the
components deallocated after the procedure call.

2015-05-26  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/66082
* gfortran.dg/allocatable_scalar_13.f90: New test

From-SVN: r223677
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/alloc_comp_auto_array_3.f90 [new file with mode: 0644]