https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65347
Paul Thomas <pault at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pault at gcc dot gnu.org --- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> --- This is partially fixed on mainline and behaves in the same way as nagfor. Finalization of array and stucture constructors is removed in F2018 and so are only activated by -std=f2003/8 in gfortran. ifort activates both be default. I seem to have overlooked finalization of structure constructors or functions within array constructors. I'll have a look to see why it is not working.