OSDN Git Service

2009-10-19 Janus Weil <janus@gcc.gnu.org>
authorjanus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Oct 2009 19:21:18 +0000 (19:21 +0000)
committerjanus <janus@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Oct 2009 19:21:18 +0000 (19:21 +0000)
commit0a96a7ccecc2a2e9bf373254760deaf74d43cadf
treed3eecbe4bbb8cd2740df65146325439f783a1cf5
parent5bc5b2c0e0e6df682a695503920959d33009728b
2009-10-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41586
* parse.c (parse_derived): Correctly set 'alloc_comp' and 'pointer_comp'
for CLASS variables.
* trans-array.c (structure_alloc_comps): Handle deallocation and
nullification of allocatable scalar components.
* trans-decl.c (gfc_get_symbol_decl): Remember allocatable scalars for
automatic deallocation.
(gfc_trans_deferred_vars): Automatically deallocate allocatable scalars.

2009-10-19  Janus Weil  <janus@gcc.gnu.org>

PR fortran/41586
* gfortran.dg/auto_dealloc_1.f90: New test case.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@152988 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/parse.c
gcc/fortran/trans-array.c
gcc/fortran/trans-decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/auto_dealloc_1.f90 [new file with mode: 0644]