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