[Patch, fortran] PR40440 - Automatic deallocation component of DT function return value

Paul Richard Thomas paul.richard.thomas@gmail.com
Fri Jun 19 22:01:00 GMT 2009


> 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



More information about the Fortran mailing list