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

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

https://gcc.gnu.org/g:734272a29b1b20566598a8b8d7256dbb3faf87cf

commit r14-12483-g734272a29b1b20566598a8b8d7256dbb3faf87cf
Author: Paul Thomas <[email protected]>
Date:   Thu Jan 23 08:27:04 2025 +0000

    Fortran: Regression- fix ICE at fortran/trans-decl.c:1575 [PR96087]

    2025-01-23  Paul Thomas  <[email protected]>

    gcc/fortran
            PR fortran/96087
            * trans-decl.cc (gfc_get_symbol_decl): If a dummy is missing a
            backend decl, it is likely that it has come from a module proc
            interface. Look for the formal symbol by name in the containing
            proc and use its backend decl.
            * trans-expr.cc (gfc_apply_interface_mapping_to_expr): For the
            same reason, match the name, rather than the symbol address to
            perform the mapping.

    gcc/testsuite/
            PR fortran/96087
            * gfortran.dg/pr96087.f90: New test.

    (cherry picked from commit b3f51ea894947e495baffc67407647a3b25acdd5)

Reply via email to