https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37336 Bug 37336 depends on bug 55603, which changed state.
Bug 55603 Summary: [F03] Memory leak with scalar allocatable function result https://gcc.gnu.org/bugzilla/show_bug.cgi?id=55603 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED