[flang] Resolve USE vs IMPORT conflicts
authorPeter Klausler <pklausler@nvidia.com>
Wed, 29 Mar 2023 15:56:31 +0000 (08:56 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 3 Apr 2023 15:50:49 +0000 (08:50 -0700)
commit32a793b687a59717bc1c0211ebeb1fcd613d1bc9
tree1c917f3cb32de108ff8dc84eebf0753f7a67af39
parent62951784f04ecd640240d7b33fcddc2ee6862bb7
[flang] Resolve USE vs IMPORT conflicts

When the same name is pulled into a scope more than once via
USE and IMPORT, emit an error if its resolutions are ambiguous,
or (as an extension like some other compilers) emit a portability
warning when the names all resolve to the same symbol.

Differential Revision: https://reviews.llvm.org/D147388
flang/docs/Extensions.md
flang/lib/Semantics/resolve-names.cpp
flang/test/Semantics/resolve118.f90 [new file with mode: 0644]