This bug was something of a disaster for Jeurgen Reuter and so I set to it right away. Jeurgen's reduction of the failing programs save a huge amount of time and the fix turned out to be a one-liner. Committed after testing by Dominique. Bootstrapped and regtested on FC28/x86_64. Paul 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 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 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 -- You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.