This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/41872] wrong-code: No auto-deallocation for INTENT(OUT) allocatable scalars
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Oct 2009 22:52:06 -0000
- Subject: [Bug fortran/41872] wrong-code: No auto-deallocation for INTENT(OUT) allocatable scalars
- References: <bug-41872-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2009-10-29 22:52 -------
Note: For arrays, the following block of trans-expr.c is used:
/* If an ALLOCATABLE dummy argument has INTENT(OUT) and is
allocated on entry, it must be deallocated. */
if (fsym && fsym->attr.allocatable
&& fsym->attr.intent == INTENT_OUT)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41872