[flang] Fix CheckSpecificationExpr handling of associated names
authorpeter klausler <pklausler@nvidia.com>
Tue, 10 Nov 2020 22:53:01 +0000 (14:53 -0800)
committerpeter klausler <pklausler@nvidia.com>
Wed, 11 Nov 2020 00:19:13 +0000 (16:19 -0800)
commitb670189975f5ba4e8ef22c74724c610287b69c28
tree680076b552b9e7c5c14ce5b351da42920eba4cab
parent04cd6c62176ce027af2d343044b84ce5d317aee7
[flang] Fix CheckSpecificationExpr handling of associated names

Avoid a spurious error message about a dummy procedure reference
in a specification expression by restructuring the handling of
use-associated and host-associated symbols.

Differential revision: https://reviews.llvm.org/D91209
flang/lib/Evaluate/check-expression.cpp
flang/test/Semantics/spec-expr.f90