re PR fortran/80983 ([F03] memory leak when calling procedure-pointer component with...
authorJanus Weil <janus@gcc.gnu.org>
Thu, 15 Jun 2017 21:17:48 +0000 (23:17 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Thu, 15 Jun 2017 21:17:48 +0000 (23:17 +0200)
commitd0e7a9fdfc21c858d4131052cf38dea4fa8f44b2
treec714a49a98e3543614a3e46469c23e577386d96d
parent0356a0749bed3e294fcee1ad1d47a1f681189e38
re PR fortran/80983 ([F03] memory leak when calling procedure-pointer component with allocatable result)

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.

From-SVN: r249227
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/proc_ptr_comp_51.f90 [new file with mode: 0644]