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: "jvdelisle at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 Jan 2017 18:43:59 +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
Jerry DeLisle <jvdelisle at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jvdelisle at gcc dot gnu.org
--- Comment #8 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
I tested this with latest trunk, gfortran 7.0.0, and valgrind and the issue is
still there. I guess the implicit allocation that happens with:
type(SU2) :: g1, g2, g3
is not being implicitly deallocated. Does it require a finalization procedure?
or would a finalization procedure be a work around?