re PR fortran/79230 ([OOP] Run time error: double free or corruption)
authorAndre Vehreschild <vehre@gcc.gnu.org>
Sun, 5 Feb 2017 12:02:15 +0000 (13:02 +0100)
committerAndre Vehreschild <vehre@gcc.gnu.org>
Sun, 5 Feb 2017 12:02:15 +0000 (13:02 +0100)
commit4b9c80d8e4a1d14f6e517aac2267675910488510
treeb43150a91f131b9ad4db6dd0d773f5cca7aa23a9
parent3501e62c3ae88066fb40f9c1360c2ee9fb716b12
re PR fortran/79230 ([OOP] Run time error: double free or corruption)

gcc/fortran/ChangeLog:

2017-02-05  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/79230
* trans-array.c (structure_alloc_comps): Ignore pointer components when
freeing structures.

gcc/testsuite/ChangeLog:

2017-02-05  Andre Vehreschild  <vehre@gcc.gnu.org>

PR fortran/79230
* gfortran.dg/der_ptr_component_2.f90: New test.

From-SVN: r245191
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/der_ptr_component_2.f90 [new file with mode: 0644]