https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37336
--- Comment #36 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Paul Thomas <pa...@gcc.gnu.org>: https://gcc.gnu.org/g:84284e1c490e9235fca5cb85269ecfcb87eef4f1 commit r14-4390-g84284e1c490e9235fca5cb85269ecfcb87eef4f1 Author: Paul Thomas <pa...@gcc.gnu.org> Date: Wed Oct 4 08:26:35 2023 +0100 Fortran: Alloc comp of non-finalizable type not finalized [PR111674] 2023-10-04 Paul Thomas <pa...@gcc.gnu.org> gcc/fortran PR fortran/37336 PR fortran/111674 * trans-expr.cc (gfc_trans_scalar_assign): Finalize components on deallocation if derived type is not finalizable. gcc/testsuite/ PR fortran/37336 PR fortran/111674 * gfortran.dg/allocate_with_source_25.f90: Final count in tree dump reverts from 4 to original 6. * gfortran.dg/finalize_38.f90: Add test for fix of PR111674.