PR fortran/89574 - ICE in conv_function_val, at fortran/trans-expr.c:3792
authorHarald Anlauf <anlauf@gmx.de>
Tue, 21 Jul 2020 19:37:30 +0000 (21:37 +0200)
committerHarald Anlauf <anlauf@gmx.de>
Tue, 21 Jul 2020 19:37:30 +0000 (21:37 +0200)
commit28f2a080cc27531a8c78aec9f44aeff4961c2a4c
tree405b2e48d96d5082075e159f946027ce292d2312
parent02363d5fdb862a11e6e65ac5b0d1f5ee0c422dc3
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.
gcc/fortran/trans-decl.c
gcc/testsuite/gfortran.dg/pr89574.f90 [new file with mode: 0644]