2017-12-28 Paul Thomas <pault@gcc.gnu.org>
commitaa6615fa03f87f3a59ceb6982008a14ccd255e00
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Dec 2017 14:27:59 +0000 (29 14:27 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 29 Dec 2017 14:27:59 +0000 (29 14:27 +0000)
treeadd05e019b36c6e52da0f6a470d7f6c142c7de2b
parenta13b62fd5f5594c2799cd543fcab0da4a06a36d8
2017-12-28  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/83567
* trans-expr.c (gfc_trans_assignment_1): Free parameterized
components of the lhs if dealloc is set.
*trans-decl.c (gfc_trans_deferred_vars): Do not free the
parameterized components of function results on leaving scope.

2017-12-28  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/83567
* gfortran.dg/pdt_26.f90 : New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256033 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/trans-expr.c