[Fortran] PR37336 - FIINAL patch [1/n]: Implement the finalization wrapper subroutine
Tobias Burnus
burnus@net-b.de
Sun Aug 19 17:51:00 GMT 2012
Dear all,
attached is a slightly updated patch:
* Call finalizers of nonallocatable, nonpointer components
* Generate FINAL wrapper for abstract types which have a finalizer. (The
allocatable components are deallocated in the first type (abstract or
not) which has a finalizer, i.e. abstract + finalizer or first
nonabstract type.)
I had to disable some resolve warning; I did so by introducing an
attr.artificial. I used it to also fix PR 51632, where we errored out
for __def_init and __copy where there were coarray components.
Build and regtested on x86-64-linux.
OK for the trunk?
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: final-wrapper-v2.diff
Type: text/x-patch
Size: 39897 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120819/b7619f63/attachment.bin>
More information about the Fortran
mailing list