This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/80121] Memory leak with derived-type intent(out) argument
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 17 Apr 2017 13:50:30 +0000
- Subject: [Bug fortran/80121] Memory leak with derived-type intent(out) argument
- Auto-submitted: auto-generated
- References: <bug-80121-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80121
--- Comment #5 from janus at gcc dot gnu.org ---
In trans-decl.c there is a function called 'init_intent_out_dt', which takes
care of deallocating the allocatable components of intent(out) derived-type
dummies. However, it has a comment saying:
/* Note: Allocatables are excluded as they are already handled
by the caller. */