]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix finalization resolution with deep copy
authorTobias Burnus <tobias@codesourcery.com>
Mon, 25 Apr 2022 13:12:01 +0000 (15:12 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 25 Apr 2022 13:29:01 +0000 (15:29 +0200)
commitc6daf2090d48bc794c6809a5d98e8d9a583346bd
tree23fa1a00be248d5a84d25e8a603aec7dbb09b4a1
parent6cd57652abea0162af7036ddb62c85a5e624cd1c
Fortran: Fix finalization resolution with deep copy

Follow-up patch to
"Fortran/OpenMP: Support mapping of DT with allocatable components"
https://gcc.gnu.org/pipermail/gcc-patches/2022-March/591144.html

gcc/fortran/ChangeLog:

        * resolve.c (gfc_resolve_finalizers): Also resolve allocatable comps.

gcc/testsuite/ChangeLog:

        * gfortran.dg/finalize_38.f90: New test.
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/finalize_38.f90 [new file with mode: 0644]