[flang] Take character function length into account when testing compatibility
authorPeter Klausler <pklausler@nvidia.com>
Wed, 9 Nov 2022 22:20:32 +0000 (14:20 -0800)
committerPeter Klausler <pklausler@nvidia.com>
Sat, 3 Dec 2022 20:35:23 +0000 (12:35 -0800)
commit9114ce4d1da94da82e1528cd0fa0500c14169c8e
tree72489fa780052ffc746288805304f31a8838ce94
parent7724ac61639a35139c7fdd7b8f3974b47d617c08
[flang] Take character function length into account when testing compatibility

When a character-valued function is passed as an actual argument, and both
the actual function and the dummy argument have explicit result lengths, take them
into account when testing for compatibility.

Differential Revision: https://reviews.llvm.org/D139129
flang/lib/Evaluate/characteristics.cpp
flang/test/Semantics/call25.f90