https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66079
--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> --- Created attachment 35583 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35583&action=edit Further advanced patch This version fixes non-character allocatable scalar functions. Now, only allocatable character functions leak memory. Paul