[Patch, Fortran, OOP] PR 47637: Memory leak involving INTENT(OUT) CLASS argument w/ allocatable components

Janus Weil janus@gcc.gnu.org
Wed Feb 9 10:26:00 GMT 2011


Hi all,

here is a small patch which takes care of auto-deallocating
INTENT(OUT) CLASS arguments with allocatable components. Regtested on
x86_64-unknown-linux-gnu. Ok for trunk?

Cheers,
Janus


2011-02-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47637
	* trans-decl.c (init_intent_out_dt): Handle CLASS arguments.


2011-02-09  Janus Weil  <janus@gcc.gnu.org>

	PR fortran/47637
	* gfortran.dg/auto_dealloc_2.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr47637.diff
Type: application/octet-stream
Size: 1436 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110209/6287d642/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: auto_dealloc_2.f90
Type: application/octet-stream
Size: 558 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20110209/6287d642/attachment-0001.obj>


More information about the Fortran mailing list