[Patch, Fortran] Add end-of-scope finalization (Part 1 of 2)
Mikael Morin
mikael.morin@sfr.fr
Fri Jun 21 21:31:00 GMT 2013
Le 21/06/2013 17:39, Tobias Burnus a écrit :
> This patch extends the already existing end-of-scope finalization to
> nonallocatables.
>
> Note: The patch only handles finalization of unsaved local variables
> whose type has a finalizer (including finalizable nonallocatable
> components or finalizers in the ancestor). In that case, the finalizer
> is invoked and also calls - where applicable - the finalizer of the
> allocatable components.
>
> Part 2 will deal with derived-types with allocatable components which
> have finalizers (for the case that derived type itself has none). This
> requires a change to gfc_deallocate_alloc_comp, which will be done in
> part 2.
>
> Build and regtested on x86-64-gnu-linux.
> OK for the trunk?
>
This one looks good too, yes.
Note: a hunk from your other patch sneaked in.
Mikael
More information about the Fortran
mailing list