Hi Thomas,
Thanks for that! I think that your one-liner says it all :-)
There are three PRs left open that PR37336 depends on:
PR65347: Is partially fixed. The F2003/8 feature of finalization of a
structure constructor within an array constructor doesn't work. I wonder if
a compile option -finalize-constructors might not be better than
-std=f2003/8?
PR84472: I need to investigate if it is fixed or not. It behaves like one
of the other brands, which complains about a double free. The other brand
does not have this problem. At one stage, I nulled pointer components
before finalization of a function result but removed it because it is not
required by the standard. It might well be a good idea, just on the grounds
that smart-pointers and resource managers seem to be the main real-life use
of finalization and pointer components loom large with them.
PR91316: An impure final call is allowed within a pure procedure at the
moment. Malcolm Cohen convinced me that this should be disallowed.
If the finalization patch has survived a few weeks on mainline without
causing problems, I am inclined to backport to 12-branch. Would that be
acceptable to one and all?
Cheers
Paul
On Sun, 19 Mar 2023 at 08:15, Thomas Koenig via Fortran