[Bug fortran/60913] [OOP] Memory leak with allocatable polymorphic function result (in type-bound operator)

cmacmackin at gmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jan 25 18:51:00 GMT 2017


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

--- Comment #9 from Chris <cmacmackin at gmail dot com> ---
Last I heard, gfortran still doesn't invoke finalisation in this situation. In
any case, while (in my main code) I could certainly reduce the volume of leaked
memory via finalisation (by deallocating arrays contained in the derived type
variable), it wouldn't work to deallocate the variable itself.


More information about the Gcc-bugs mailing list