[flang] Use IMPLICIT from scope of external function reference
authorpeter klausler <pklausler@nvidia.com>
Tue, 10 Nov 2020 23:10:48 +0000 (15:10 -0800)
committerpeter klausler <pklausler@nvidia.com>
Wed, 11 Nov 2020 20:12:24 +0000 (12:12 -0800)
commit2d5b850751789531d9c47e1ccc18f1ac8f9bac7a
treea81be748494f32c6271e3a5dd36b5d87554889c4
parentf917356f9ce026f9be9972b8c75cd3ba00e43497
[flang] Use IMPLICIT from scope of external function reference

Implicitly typed references to external functions are applying
the IMPLICIT typing rules of the global scope in which their
symbols were created, not the IMPLICIT typing rules in force in
the scope from which they were referenced.

Differential revision: https://reviews.llvm.org/D91214
flang/lib/Semantics/resolve-names.cpp