https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83567
--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Fri Dec 29 14:27:59 2017 New Revision: 256033 URL: https://gcc.gnu.org/viewcvs?rev=256033&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. Modified: trunk/gcc/fortran/trans-expr.c