[flang] Handle USE association in parse tree rewriting
authorPeter Klausler <pklausler@nvidia.com>
Wed, 8 Jun 2022 21:11:07 +0000 (14:11 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 13 Jun 2022 23:20:51 +0000 (16:20 -0700)
commitf472c099be07593be2a1ea9f5c61793d348a4f52
tree0b1dbd1151e729a72596d3d8c95ee1d02b655caf
parent8eebf4696454378deb4b6dcbd5a17227eeb3677c
[flang] Handle USE association in parse tree rewriting

f18 was treating "f() = 1" as a statement function definition
if it could be viewed as being in the specification part and
"f" was a USE-associated function returning a data pointer.
(The non-USE-associated case is fine.)  Fix to allow for "f"
to be USE associated.

Differential Revision: https://reviews.llvm.org/D127430
flang/lib/Semantics/rewrite-parse-tree.cpp