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

--- Comment #12 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andre Vehreschild <ve...@gcc.gnu.org>:

https://gcc.gnu.org/g:661acde60ef4e9ac5a9e48be18770fb3a9aeb9a5

commit r15-3014-g661acde60ef4e9ac5a9e48be18770fb3a9aeb9a5
Author: Andre Vehreschild <ve...@gcc.gnu.org>
Date:   Thu Jul 11 15:44:56 2024 +0200

    Fix ICE in recompute_tree_invariant_for_addr_expr, at tree.c:4535 [PR84244]

    Declaring an unused function with a derived type having a pointer
    component and using that derived type as a coarray, lead the compiler to
    ICE because the caf_token for the pointer was not linked into the
    component correctly.

            PR fortran/84244

    gcc/fortran/ChangeLog:

            * trans-types.cc (gfc_get_derived_type): When a caf_sub_token is
            generated for a component, link it to the component it is
            generated for (the previous one).

    gcc/testsuite/ChangeLog:

            * gfortran.dg/coarray/ptr_comp_5.f08: New test.
  • [Bug fortran/84244] [12/13/14/1... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to