re PR fortran/40850 (double free in nested types with allocatable components)
authorMikael Morin <mikael@gcc.gnu.org>
Wed, 23 Feb 2011 22:38:27 +0000 (22:38 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Wed, 23 Feb 2011 22:38:27 +0000 (22:38 +0000)
commit46b2c44027f8972329b6f602b57c9fdf1a8e4007
treea4e7cb1e664ed6ae2b86798290fd00e26da7d19c
parentb14fad9dd817fb6f5bd33573a530e7e41131ee0c
re PR fortran/40850 (double free in nested types with allocatable components)

2011-02-23  Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/40850
* trans.c (gfc_prepend_expr_to_block): New function.
* trans.h (gfc_prepend_expr_to_block): Declare.
* trans-array.c (gfc_conv_array_parameter): Replace
gfc_add_expr_to_block with gfc_prepend_expr_to_block.

2011-02-23  Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/40850
* gfortran.dg/nested_allocatables_1.f90: New.

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