This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/80983] [F03] memory leak when calling procedure-pointer component with allocatable result


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80983

--- Comment #2 from janus at gcc dot gnu.org ---
Author: janus
Date: Thu Jun 15 21:17:48 2017
New Revision: 249227

URL: https://gcc.gnu.org/viewcvs?rev=249227&root=gcc&view=rev
Log:
2017-06-15  Janus Weil  <janus@gcc.gnu.org>

        PR fortran/80983
        * trans-expr.c (gfc_conv_procedure_call): Deallocate the result of
        scalar allocatable procedure-pointer components.


2017-06-15  Janus Weil  <janus@gcc.gnu.org>

        PR fortran/80983
        * gfortran.dg/proc_ptr_comp_51.f90: New test.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]