[flang] Fix interpretation of intrinsic names as arguments
authorTim Keith <tkeith@nvidia.com>
Tue, 11 Aug 2020 23:52:49 +0000 (16:52 -0700)
committerTim Keith <tkeith@nvidia.com>
Tue, 11 Aug 2020 23:52:50 +0000 (16:52 -0700)
commitf5e4451e1f27e87d30c4eb0c3c99f2f8d07039e1
tree1cc28095d02cd67fac348ea25b4e2241fa8d144a
parentc6f51377e12b343ca2f712b6af6908555f07ad04
[flang] Fix interpretation of intrinsic names as arguments

If an unrestricted specific intrinsic function name is first encountered
as an actual argument, it should be interpreted as an object entity,
not a procedure entity.

Fix some tests that depended on the previous interpretation by adding
explicit INTRINSIC statements.

Differential Revision: https://reviews.llvm.org/D85792
flang/lib/Semantics/resolve-names.cpp
flang/test/Semantics/call02.f90
flang/test/Semantics/call09.f90