https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89574
--- Comment #14 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-8 branch has been updated by Harald Anlauf <anl...@gcc.gnu.org>: https://gcc.gnu.org/g:41c072bded24642d6b4a38e3f5e2890c1aa8c5a1 commit r8-10372-g41c072bded24642d6b4a38e3f5e2890c1aa8c5a1 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. (cherry picked from commit 28f2a080cc27531a8c78aec9f44aeff4961c2a4c)