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.