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

2017-06-16 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80983

--- Comment #4 from janus at gcc dot gnu.org ---
Author: janus
Date: Fri Jun 16 10:15:42 2017
New Revision: 249243

URL: https://gcc.gnu.org/viewcvs?rev=249243=gcc=rev
Log:
2017-06-16  Janus Weil  

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

Modified:
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/proc_ptr_comp_51.f90

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

2017-06-15 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80983

janus at gcc dot gnu.org changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #3 from janus at gcc dot gnu.org ---
Fixed with r249227. Closing.

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

2017-06-15 Thread janus at gcc dot gnu.org
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=gcc=rev
Log:
2017-06-15  Janus Weil  

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


2017-06-15  Janus Weil  

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

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

2017-06-12 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80983

janus at gcc dot gnu.org changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |janus at gcc dot gnu.org

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

2017-06-05 Thread dominiq at lps dot ens.fr
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80983

Dominique d'Humieres  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2017-06-05
 Ever confirmed|0   |1

--- Comment #1 from Dominique d'Humieres  ---
Confirmed from 5.4.0 up to trunk (8.0). I don't see any __builtin_free if I
compile the test with 4.9.

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

2017-06-05 Thread janus at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80983

janus at gcc dot gnu.org changed:

   What|Removed |Added

   Target Milestone|--- |8.0
  Known to fail||5.4.1, 6.3.0, 7.1.1, 8.0