diff options
author | Paul Thomas <pault@gcc.gnu.org> | 2023-10-04 08:26:35 +0100 |
---|---|---|
committer | Paul Thomas <pault@gcc.gnu.org> | 2023-10-04 08:26:35 +0100 |
commit | 84284e1c490e9235fca5cb85269ecfcb87eef4f1 (patch) | |
tree | 266bf5e6fc50f941d86b5c25e5b8a5c03d087349 /gcc/combine.cc | |
parent | 96557ee6a0a234821af865800d22621efa6e7390 (diff) | |
download | gcc-84284e1c490e9235fca5cb85269ecfcb87eef4f1.zip gcc-84284e1c490e9235fca5cb85269ecfcb87eef4f1.tar.gz gcc-84284e1c490e9235fca5cb85269ecfcb87eef4f1.tar.bz2 |
Fortran: Alloc comp of non-finalizable type not finalized [PR111674]
2023-10-04 Paul Thomas <pault@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.
Diffstat (limited to 'gcc/combine.cc')
0 files changed, 0 insertions, 0 deletions