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

--- Comment #17 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
Author: tkoenig
Date: Sun Apr 14 12:27:44 2019
New Revision: 270352

URL: https://gcc.gnu.org/viewcvs?rev=270352&root=gcc&view=rev
Log:
2019-04-14  Thomas Koenig  <tkoe...@gcc.gnu.org>

        PR fortran/87352
        Backport from trunk
        * gfortran.h (gfc_component): Add finalized field.
        * class.c (finalize_component): If the component is already
        finalized, return early.  Set component->finalized on exit.

2019-04-14  Thomas Koenig  <tkoe...@gcc.gnu.org>

        Backport from trunk
        PR fortran/87352
        * gfortran.dg/finalize_28.f90: Adjust count of __builtin_free.
        * gfortran.dg/finalize_34.f90: New test.


Added:
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/finalize_34.f90
Modified:
    branches/gcc-7-branch/gcc/fortran/ChangeLog
    branches/gcc-7-branch/gcc/fortran/class.c
    branches/gcc-7-branch/gcc/fortran/gfortran.h
    branches/gcc-7-branch/gcc/testsuite/ChangeLog
    branches/gcc-7-branch/gcc/testsuite/gfortran.dg/finalize_28.f90

Reply via email to