re PR fortran/87359 (pointer being freed was not allocated)
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 21 Sep 2018 17:26:23 +0000 (17:26 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 21 Sep 2018 17:26:23 +0000 (17:26 +0000)
commitfd876246ee8a5aabb710673f7a8bc49b7c15fe84
treed39b0852443d85292d6513518286b03d2d484a1a
parentd4accef391a4aa4c10daeef79c7103fae96a97ba
re PR fortran/87359 (pointer being freed was not allocated)

2018-09-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/87359
* trans-stmt.c (gfc_trans_allocate): Don't deallocate alloc
components if must_finalize is set for expr3.

2018-09-21  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/87359
* gfortran.dg/finalize_33.f90 : New test.

From-SVN: r264485
gcc/fortran/ChangeLog
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/finalize_33.f90 [new file with mode: 0644]