[Bug fortran/55207] Automatic deallocation of variables declared in the main program

janus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Aug 1 14:58:00 GMT 2013


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

--- Comment #9 from janus at gcc dot gnu.org ---
(In reply to janus from comment #8)
> I think we need the patch in comment 6 after all. But how do we get rid of
> the remaining regressions?

Simplest solution: Move the code in these test cases from the main program into
a subroutine (or similar). Then the variables will not be SAVEd and all
optimizations can be applied as before. (However, it's a bit unfortunate that
we lose the possibility to do these optimizations in the main program.)



More information about the Gcc-bugs mailing list