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 <bur...@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 --
final2.f90
Description: Binary data