[flang] Address regression (calls to assumed-length character function dummy procedures)
authorPeter Klausler <pklausler@nvidia.com>
Wed, 25 May 2022 16:19:19 +0000 (09:19 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Wed, 25 May 2022 19:00:07 +0000 (12:00 -0700)
commitbbad981dab49851ab0b94fbb27925fe1c80f888b
tree29e45195aa89be2a56498196627c1a7cd6b6eb28
parent997b072e10d2be09c0e1a5bf4d6b92e2da3b8cc6
[flang] Address regression (calls to assumed-length character function dummy procedures)

A recent fix beefed up semantics checking to catch the case of a call
to an external assumed-length character function; this check has false
positives in the case of an assumed-length character function that is
a dummy procedure.  These do have a length that is passed in extra
compiler-created arguments.  This patch refines the check and undoes some
changes to tests.

Differential Revision: https://reviews.llvm.org/D126390
flang/lib/Semantics/expression.cpp
flang/test/Evaluate/rewrite01.f90
flang/test/Lower/dummy-procedure-character.f90
flang/test/Lower/host-associated.f90
flang/test/Semantics/call01.f90