[PATCH] PR fortran/89574 - [8/9/10/11 Regression] ICE in conv_function_val, at fortran/trans-expr.c:3792

Harald Anlauf anlauf@gmx.de
Tue Jul 14 21:20:39 GMT 2020


As Fortran allows to rename a symbol on use, we need to be careful to
check whether a name we are looking for is a global one or belongs to
a different module.  Check for this condition.

Regtested on x86_64-pc-linux-gnu.

OK for master / backports after some time for a proper burn-in?

Thanks,
Harald


PR fortran/89574 - ICE in conv_function_val, at fortran/trans-expr.c:3792

When checking for an external procedure from the same file, do not
consider symbols from different modules.

gcc/fortran/
	PR fortran/89574
	* trans-decl.c (gfc_get_extern_function_decl): Check whether a
	symbol belongs to a different module.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr89574.patch
Type: text/x-patch
Size: 1371 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20200714/fa571c46/attachment.bin>


More information about the Fortran mailing list