This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/60913] [OOP] Memory leak with allocatable polymorphic function result (in type-bound operator)
- From: "cmacmackin at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 Jan 2017 18:51:15 +0000
- Subject: [Bug fortran/60913] [OOP] Memory leak with allocatable polymorphic function result (in type-bound operator)
- Auto-submitted: auto-generated
- References: <bug-60913-4@http.gcc.gnu.org/bugzilla/>
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.