This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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?

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]