]> git.ipfire.org Git - thirdparty/gcc.git/commit
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>
Thu, 23 Jul 2020 19:03:41 +0000 (21:03 +0200)
commitbab0c51af90f475dab8f1b306737cd04b06d4b04
tree5eb6c14ce5198211bae659c07d043152f191149e
parent5497677b497b95a261089d19f5295cc80f99a2b6
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)
gcc/fortran/trans-decl.c
gcc/testsuite/gfortran.dg/pr89574.f90 [new file with mode: 0644]