[Bug fortran/58434] no automatic deallocation with trunk

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 16 18:45:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58434

janus at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |janus at gcc dot gnu.org
         Resolution|---                         |FIXED

--- Comment #1 from janus at gcc dot gnu.org ---
(In reply to Valery Weber from comment #0)
> I noticed a changed of behavior between 4.8.1 and trunk.
> While the following code produde no memory leaks with 4.8.1 it does with
> the trunk. Is that a bug?

The same comment applies here as in PR 58433: This change is not a bug, but was
done intentionally to comply with the Fortran standard.

A possible workaround to accomplish finalization in the main program is to use
a BLOCK ... END BLOCK statement.



More information about the Gcc-bugs mailing list