Re: Allocatable arrays in derived types



The gfortran implementation of allocatable components attempts to
realise the extension to F95, TR15581: ftp://ftp.nag.co.uk/sc22wg5/N1351-N1400/N1379.pdf

Amongst other things, automatic memory deallocation/allocation on
assignment or with derived type constructors, automatic deallocation
on leaving scope and MOVE_ALLOC are implemented. In principle, memory
leakage should be prevented automatically. In practice, gfortran does
not quite manage this in the case of nested constructors but seems to
do OK otherwise. I am working on this and related issues and expect
to fix it soon.

Regards

Paul Thomas
.