This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/80477] [OOP] Polymorphic function result generates memory leak
- From: "stefano.zaghi at cnr dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Apr 2017 11:03:01 +0000
- Subject: [Bug fortran/80477] [OOP] Polymorphic function result generates memory leak
- Auto-submitted: auto-generated
- References: <bug-80477-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80477
--- Comment #15 from Stefano Zaghi <stefano.zaghi at cnr dot it> ---
Dear all,
I add that the workaround (inserting an allocatable inside the type being a
result of polymorphic function) if used into a real code
(https://github.com/szaghi/FORESEER) does not solve the memory leak and
generates
Error in `./exe/foreseer_test_shock_tube': free(): invalid pointer:
0x00007f04e4f80b00
I have not yet minimized this last example.
I do not know if this is of some help.
My best regards.