]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fortran: Fix finalization resolution with deep copy (cont)
authorTobias Burnus <tobias@codesourcery.com>
Wed, 27 Apr 2022 17:44:52 +0000 (19:44 +0200)
committerTobias Burnus <tobias@codesourcery.com>
Wed, 27 Apr 2022 17:44:52 +0000 (19:44 +0200)
commit492ea356ce4b9e40c417b3740cc298d6cc78e870
treeafe80039fb0df43261009728340f3165d40930fd
parentc6daf2090d48bc794c6809a5d98e8d9a583346bd
Fortran: Fix finalization resolution with deep copy (cont)

gcc/fortran/ChangeLog:

* resolve.c (gfc_resolve_finalizers): Remove
gfc_resolve_finalizers calls, use gfc_is_finalizable.
(resolve_fl_derived): Resolve derived-type components
first.

gcc/testsuite/ChangeLog:

* gfortran.dg/abstract_type_6.f03: Remove dg-error as
now hidden by other errors; copy to ...
* gfortran.dg/abstract_type_6a.f03: ... here; remove
some error to diagnose the error.
* gfortran.dg/finalize_39.f90: New test.
gcc/fortran/resolve.c
gcc/testsuite/gfortran.dg/abstract_type_6.f03
gcc/testsuite/gfortran.dg/abstract_type_6a.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/finalize_39.f90 [new file with mode: 0644]