https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37336 Bug 37336 depends on bug 65347, which changed state.
Bug 65347 Summary: [F03] Final subroutine not called for function result https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65347 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED