https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83567
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #7 from Paul Thomas <pault at gcc dot gnu.org> --- (In reply to Paul Thomas from comment #6) > 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 Sorry, this was not the right ChangeLog: This commit fixes the problem reported in comment #4 and should be: PR fortran/83567 * trans-expr.c (gfc_trans_assignment_1): Free parameterized components of the lhs if dealloc is set and lhs is not an associate variable. Paul