[flang] Defer stmt function body analysis until specification part complete
authorpeter klausler <pklausler@nvidia.com>
Mon, 29 Jun 2020 17:45:02 +0000 (10:45 -0700)
committerpeter klausler <pklausler@nvidia.com>
Mon, 29 Jun 2020 19:32:19 +0000 (12:32 -0700)
commitf45b41348ba49c4a76baab1e3e302ef8e2bb992b
tree305a30c3d1e247c16e0f44cf7c062a20d485c302
parent5918d49ac152a67575cec84c2aa2c5c40b3612c8
[flang] Defer stmt function body analysis until specification part complete

Expression analysis was being invoked on the bodies of statement functions
as they were being encountered during name resolution.  This led to failures
on some FCVS tests in cases where those expressions contained implicitly
typed objects.  Defer the analysis of statemet function bodies to the end
of the specification part, at which time the symbols of the enclosing scope
will have been typed.

Reviewed By: tskeith

Differential Revision: https://reviews.llvm.org/D82796
flang/lib/Semantics/resolve-names.cpp