https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89574
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:28f2a080cc27531a8c78aec9f44aeff4961c2a4c commit r11-2256-g28f2a080cc27531a8c78aec9f44aeff4961c2a4c Author: Harald Anlauf <anl...@gmx.de> Date: Tue Jul 21 21:37:30 2020 +0200 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.