https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83567
--- Comment #3 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Thu Dec 28 13:22:36 2017 New Revision: 256019 URL: https://gcc.gnu.org/viewcvs?rev=256019&root=gcc&view=rev Log: 2017-12-28 Paul Thomas <pa...@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 <pa...@gcc.gnu.org> PR fortran/83567 * gfortran.dg/pdt_26.f90 : New test. Added: trunk/gcc/testsuite/gfortran.dg/pdt_26.f03 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-decl.c trunk/gcc/fortran/trans-expr.c trunk/gcc/testsuite/ChangeLog