]> gcc.gnu.org Git - gcc.git/commit
Fortran: Alloc comp of non-finalizable type not finalized [PR111674]
authorPaul Thomas <pault@gcc.gnu.org>
Wed, 4 Oct 2023 07:26:35 +0000 (08:26 +0100)
committerPaul Thomas <pault@gcc.gnu.org>
Wed, 4 Oct 2023 07:26:35 +0000 (08:26 +0100)
commit84284e1c490e9235fca5cb85269ecfcb87eef4f1
tree266bf5e6fc50f941d86b5c25e5b8a5c03d087349
parent96557ee6a0a234821af865800d22621efa6e7390
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.
gcc/fortran/trans-expr.cc
gcc/testsuite/gfortran.dg/allocate_with_source_25.f90
gcc/testsuite/gfortran.dg/finalize_38.f90
This page took 0.080311 seconds and 6 git commands to generate.