This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, fortran] PR40440 - Automatic deallocation component of DT function return value
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: fortran at gcc dot gnu dot org, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Sat, 20 Jun 2009 00:01:13 +0200
- Subject: Re: [Patch, fortran] PR40440 - Automatic deallocation component of DT function return value
- References: <339c37f20906190156u5f84f270t69ee8120f686c7dd@mail.gmail.com>
> 2009-06-19 ?Paul Thomas ?<pault@gcc.gnu.org>
>
> ? ? ? ?PR fortran/40440
> ? ? ? ?* trans-expr.c (gfc_conv_procedure_call): Do not deallocate
> ? ? ? ?allocatable components if the argument is a pointer.
>
> 2009-06-19 ?Paul Thomas ?<pault@gcc.gnu.org>
>
> ? ? ? ?PR fortran/40440
> ? ? ? ?* gfortran.dg/alloc_comp_result_2.f90: New test.
>
Committed as revision 148731
Please note that I have improved the testcase a bit to ensure that it
does not leak memory.
Paul