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/64932] [4.9/5 Regression] ICE in gfc_conv_descriptor_data_get for generated finalizer


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64932

--- Comment #6 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Thu Feb 12 21:06:41 2015
New Revision: 220659

URL: https://gcc.gnu.org/viewcvs?rev=220659&root=gcc&view=rev
Log:
2015-02-12  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/64932
    * trans-stmt.c (gfc_trans_deallocate): If a component array
    expression is not a descriptor type and it is a derived type
    that has allocatable components and is not finalizable, then
    deallocate the allocatable components.

2015-02-12  Paul Thomas  <pault@gcc.gnu.org>

    PR fortran/64932
    * gfortran.dg/finalize_28.f90: New test


Added:
    branches/gcc-4_9-branch/gcc/testsuite/gfortran.dg/finalize_28.f90
Modified:
    branches/gcc-4_9-branch/gcc/fortran/ChangeLog
    branches/gcc-4_9-branch/gcc/fortran/trans-stmt.c
    branches/gcc-4_9-branch/gcc/testsuite/ChangeLog


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