re PR fortran/84523 (Runtime crash deallocating allocatable array within derived...
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 25 Feb 2018 12:41:26 +0000 (12:41 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 25 Feb 2018 12:41:26 +0000 (12:41 +0000)
commit8fba26f48f4224ca9f2faab0b2a28e20784a119c
tree7736367a759834239d9df93cb718fb1e4d2b44fe
parent6ef1366a5516de64a6fcf35014359aba9d631c9a
re PR fortran/84523 (Runtime crash deallocating allocatable array within derived type)

2018-02-25  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/84523
* trans-intrinsic.c (gfc_conv_allocated): If the argument se
has a pre block, add it to the expression pre block.

2018-02-25  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/84523
* gfortran.dg/pr84523.f90: New test.

From-SVN: r257970
gcc/fortran/ChangeLog
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr84523.f90 [new file with mode: 0644]