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

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

https://gcc.gnu.org/g:b3f51ea894947e495baffc67407647a3b25acdd5

commit r15-7150-gb3f51ea894947e495baffc67407647a3b25acdd5
Author: Paul Thomas <pa...@gcc.gnu.org>
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  <pa...@gcc.gnu.org>

    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.

Reply via email to