re PR fortran/34681 (SAVEd derived type with allocatable components causes ICE)
authorPaul Thomas <pault@gcc.gnu.org>
Tue, 8 Jan 2008 15:12:34 +0000 (15:12 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Tue, 8 Jan 2008 15:12:34 +0000 (15:12 +0000)
commit3672065a1dc197ed785e6b1ffae1449621c5e3d2
treebe9570725d190ba3b7ea072d185fef893ed52e81
parent8bce96f5a03f2a240c402550c158882f4bd93fd6
re PR fortran/34681 (SAVEd derived type with allocatable components causes ICE)

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34681
* trans_array.c (gfc_trans_deferred_array): Do not null the
data pointer on entering scope, nor deallocate it on leaving
scope, if the symbol has the 'save' attribute.

PR fortran/34704
* trans_decl.c (gfc_finish_var_decl): Derived types with
allocatable components and an initializer must be TREE_STATIC.

2008-01-08  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/34681
PR fortran/34704
* gfortran.dg/alloc_comp_default_init_1.f90: New test.

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