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

--- Comment #20 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-14 branch has been updated by Paul Thomas <pa...@gcc.gnu.org>:

https://gcc.gnu.org/g:9a5ee8da09b705fc2a4197453789db0749387db3

commit r14-10863-g9a5ee8da09b705fc2a4197453789db0749387db3
Author: Paul Thomas <pa...@gcc.gnu.org>
Date:   Fri Oct 25 17:59:03 2024 +0100

    Fortran: Fix ICE with structure constructor in data statement [PR79685]

    2024-10-25  Paul Thomas  <pa...@gcc.gnu.org>

    gcc/fortran
            PR fortran/79685
            * decl.cc (match_data_constant): Find the symtree instead of
            the symbol so the use renamed symbols are found. Pass this and
            the derived type to gfc_match_structure_constructor.
            * match.h: Update prototype of gfc_match_structure_contructor.
            * primary.cc (gfc_match_structure_constructor): Remove call to
            gfc_get_ha_sym_tree and use caller supplied symtree instead.

    gcc/testsuite/
            PR fortran/79685
            * gfortran.dg/use_rename_13.f90: New test.

    (cherry picked from commit 6cb1da72cac166bd3b005c0430557b68b9761da5)

Reply via email to