[Bug fortran/84115] [8 Regression] ICE: tree check: expected tree that contains 'decl minimal' structure, have 'indirect_ref' in add_decl_as_local, at fortran/trans-decl.c:256

pault at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 4 13:19:00 GMT 2018


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

--- Comment #4 from Paul Thomas <pault at gcc dot gnu.org> ---
Author: pault
Date: Sun Feb  4 13:18:33 2018
New Revision: 257363

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

        PR fortran/84115
        * trans-decl.c (gfc_get_symbol_decl): Do not finish the decl of
        'length' if the symbol charlen backend_decl is an indirect ref.

2018-02-04  Paul Thomas  <pault@gcc.gnu.org>

        PR fortran/84115
        * gfortran.dg/associate_34.f90: New test.
        * gfortran.dg/associate_35.f90: New test.


Added:
    trunk/gcc/testsuite/gfortran.dg/associate_34.f90
    trunk/gcc/testsuite/gfortran.dg/associate_35.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-decl.c
    trunk/gcc/testsuite/ChangeLog


More information about the Gcc-bugs mailing list