]> 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 08:21:32 +0000 (09:21 +0100)
commit29cd67f93f00cc7a9b08eae4f3e12e67ed568f19
tree6dd76fb4c38dee6818533d2177190dbbe14d2c82
parentc1e4b1bc780d323dfca78cbac3c18e217c100a89
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.

(cherry picked from commit 84284e1c490e9235fca5cb85269ecfcb87eef4f1)
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.079971 seconds and 6 git commands to generate.