[Bug fortran/60913] [OOP] Memory leak with allocatable polymorphic function result (in type-bound operator)
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 25 18:44:00 GMT 2017
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?
More information about the Gcc-bugs
mailing list