https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87359
--- Comment #17 from Paul Thomas <pault at gcc dot gnu.org> --- Author: pault Date: Fri Sep 21 17:26:23 2018 New Revision: 264485 URL: https://gcc.gnu.org/viewcvs?rev=264485&root=gcc&view=rev Log: 2018-09-21 Paul Thomas <pa...@gcc.gnu.org> PR fortran/87359 * trans-stmt.c (gfc_trans_allocate): Don't deallocate alloc components if must_finalize is set for expr3. 2018-09-21 Paul Thomas <pa...@gcc.gnu.org> PR fortran/87359 * gfortran.dg/finalize_33.f90 : New test. Added: trunk/gcc/testsuite/gfortran.dg/finalize_33.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/trans-stmt.c trunk/gcc/testsuite/ChangeLog