Skip to content
Snippets Groups Projects
Commit b3f51ea8 authored by Paul Thomas's avatar Paul Thomas
Browse files

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

2025-01-23  Paul Thomas  <pault@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.
parent 7fffff1d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment