This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]