------- Comment #5 from janus at gcc dot gnu dot org  2009-10-19 19:21 -------
Subject: Bug 41586

Author: janus
Date: Mon Oct 19 19:21:18 2009
New Revision: 152988

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152988
Log:
2009-10-19  Janus Weil  <ja...@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  <ja...@gcc.gnu.org>

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

Added:
    trunk/gcc/testsuite/gfortran.dg/auto_dealloc_1.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/parse.c
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41586

Reply via email to