* PING * Attached is a rediff - including the later posted additional test case (http://gcc.gnu.org/ml/fortran/2013-05/msg00141.html) On May 31, 2013 18:39, Tobias Burnus wrote: > This patch adds finalization support for INTENT(out) for > nonallocatable dummy arguments. > > Additionally, it addresses a missed optimization: The previous code > tried to deallocate allocatable components even if the dummy argument > was already an allocatable. That's a missed optimization as gfortran > deallocates allocatables in the caller. > > OK for the trunk? > > Note: This patch depends on > http://gcc.gnu.org/ml/fortran/2013-05/msg00134.html > > Tobias > > PS: There are many more places where finalization should happen, e.g. > intrinsic assignment (LHS + RHS func/constructor finalization), > end-of-scope of nonallocatables. And some issues related coarrays, > elemental+optional, etc. > However, I stop here for the moment as I run out of time - and writing > on-top patches of not reviewed/committed patches starts to become a > chore.