https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69080
kargl at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kargl at gcc dot gnu.org --- Comment #10 from kargl at gcc dot gnu.org --- (In reply to Mueller from comment #7) > (In reply to kargl from comment #5) > > When the execution of a procedure is terminated by execution of a > > RETURN or END statement, an allocatable variable that is a named > > local variable of the procedure retains its allocation and definition > > status if it has the SAVE attribute or is a function result variable > > or a subobject thereof; otherwise, it is deallocated. > > If you are stating it like that it sounds like these are the directives of > the current Fortran standard. I've read a little bit of the standard before > posting my question here, but could not really figure out the meaning in > terms of allocatable function results. So if what you stated is standard > Fortran, I'm thanking you for clearing this up. It is a verbatim quote from the Fortran 2003 standard.