re PR fortran/64932 (ICE in gfc_conv_descriptor_data_get for generated finalizer)
authorPaul Thomas <pault@gcc.gnu.org>
Thu, 12 Feb 2015 19:30:53 +0000 (19:30 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Thu, 12 Feb 2015 19:30:53 +0000 (19:30 +0000)
commitec6a7096e3da03d3f0b22878be007d54af6d137d
tree65515247139d8d4088e1b6ba93b4bbe760bc68eb
parent12d0d3581b0acf77d6cb57b6e77eaf92e0413b78
re PR fortran/64932 (ICE in gfc_conv_descriptor_data_get for generated finalizer)

2015-02-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/64932
* trans-stmt.c (gfc_trans_deallocate): If a component array
expression is not a descriptor type and it is a derived type
that has allocatable components and is not finalizable, then
deallocate the allocatable components.

2015-02-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/64932
* gfortran.dg/finalize_28.f90: New test

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