[Bug fortran/19929] Deallocation of an allocated derived type component causes failure

cvs-commit at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Oct 23 20:06:00 GMT 2005



------- Comment #5 from cvs-commit at gcc dot gnu dot org  2005-10-23 20:05 -------
Subject: Bug 19929

CVSROOT:        /cvs/gcc
Module name:    gcc
Branch:         gcc-4_0-branch
Changes by:     eedelman@gcc.gnu.org    2005-10-23 20:05:53

Modified files:
        gcc/fortran    : ChangeLog trans-stmt.c 
        gcc/testsuite  : ChangeLog 
Added files:
        gcc/testsuite/gfortran.dg: der_ptr_component_1.f90 

Log message:
        2005-10-23  Erik Edelmann  <erik.edelmann@iki.fi>

        PR fortran/19929
        * trans-stmt.c (gfc_trans_deallocate): Check if the
        object to be deallocated is an array by looking at
        expr->rank instead of expr->symtree->n.sym->attr.dimension.

        2005-10-23  Erik Edelmann  <erik.edelmann@iki.fi>

        PR fortran/19929
        * gfortran.dg/der_ptr_component_1.f90: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.335.2.135&r2=1.335.2.136
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/fortran/trans-stmt.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.24.6.9&r2=1.24.6.10
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.482&r2=1.5084.2.483
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gfortran.dg/der_ptr_component_1.f90.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.16.1


-- 


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



More information about the Gcc-bugs mailing list