[Bug fortran/94109] [8/9/10/11 Regression] Memory leak introduced in 8.3.0->8.3.1

tkoenig at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Jun 14 21:27:24 GMT 2020


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

Thomas Koenig <tkoenig at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|WAITING                     |RESOLVED

--- Comment #21 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Unfortunately, there isn't going to be any more release for gcc 7.
I could backport this to the gcc-7 branch, but the likelyhood
that distributions would pick it up from the branch is almost nil.

As for a workaround for memory leaks, you can always add

if (.not. allocated(a)) deallocate (a)

to your source code.  It's not what allocatables are about,
but it would work.

Thanks for reporting this, and for reducing the two test cases!

I'm closing this as fixed for now.


More information about the Gcc-bugs mailing list