2008-01-08 Paul Thomas <pault@gcc.gnu.org>
commit1172203c022501bc10bdd485e87460378d3f37ec
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jan 2008 15:12:34 +0000 (8 15:12 +0000)
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Jan 2008 15:12:34 +0000 (8 15:12 +0000)
treebe9570725d190ba3b7ea072d185fef893ed52e81
parentc7f0e882033d37099da13f373ad385a8d57872e4
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131395 138bc75d-0d04-0410-961f-82ee72b054a4
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]