[flang] Don't use-associate intrinsics
authorTim Keith <tkeith@nvidia.com>
Wed, 15 Jul 2020 22:08:07 +0000 (15:08 -0700)
committerTim Keith <tkeith@nvidia.com>
Wed, 15 Jul 2020 22:08:08 +0000 (15:08 -0700)
commitfa5e4482e01f7eceae52529edb75e754b601e8d0
tree397d90c00a2f10497504aa94d721a504ac2a83da
parented6b578040a85977026c93bf4188f996148f3218
[flang] Don't use-associate intrinsics

When an intrinsic is referenced in a module scope, a symbol for it is
added. When that module is USEd, the intrinsic should not be included.
Otherwise we can get ambiguous reference errors with the same intrinsic
coming from two difference modules.

Differential Revision: https://reviews.llvm.org/D83905
flang/lib/Semantics/resolve-names.cpp
flang/test/Semantics/modfile30.f90
flang/test/Semantics/resolve14.f90