[Bug fortran/40440] Automatic deallocation component of DT function return value

pault at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Jun 19 21:58:00 GMT 2009



------- Comment #13 from pault at gcc dot gnu dot org  2009-06-19 21:58 -------
Subject: Bug 40440

Author: pault
Date: Fri Jun 19 21:58:27 2009
New Revision: 148731

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148731
Log:
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.

Added:
    trunk/gcc/testsuite/gfortran.dg/alloc_comp_result_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-expr.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40440



More information about the Gcc-bugs mailing list