[Fortran] PR37336 - FIINAL patch [1/n]: Implement the finalization wrapper subroutine
Alessandro Fanfarillo
alessandro.fanfarillo@gmail.com
Fri Aug 24 15:01:00 GMT 2012
Dear Tobias,
there are some problems with the final-wrapper-v2.diff patch; I get
the following error
final2.f90:71.15:
end module test
1
Internal Error at (1):
gfc_code2string(): Bad code
for every test case that I use; in attachment final2.f90.
Regards
Alessandro
2012/8/19 Tobias Burnus <burnus@net-b.de>:
> 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: final2.f90
Type: application/octet-stream
Size: 1600 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20120824/01aa2498/attachment.obj>
More information about the Fortran
mailing list