[Bug fortran/69080] No automatic deallocation of allocatable function results

sv.mueller@tu-braunschweig.de gcc-bugzilla@gcc.gnu.org
Wed Jan 6 10:45:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69080

--- Comment #7 from sv.mueller@tu-braunschweig.de ---
(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.


More information about the Gcc-bugs mailing list