diff options
author | Peter Steinfeld <psteinfeld@nvidia.com> | 2021-04-21 12:12:26 -0700 |
---|---|---|
committer | Peter Steinfeld <psteinfeld@nvidia.com> | 2021-04-22 08:49:49 -0700 |
commit | e9be1e7d843bed90f1270c113823534bdb308eb0 (patch) | |
tree | 165ee5ed9b2aff4bcea3d851fe96ea09e4f8df45 /lldb/source/Commands/CommandObjectExpression.cpp | |
parent | 4299ab6c5daf62c01a74bef1fe18920dbb13c83e (diff) | |
download | llvm-e9be1e7d843bed90f1270c113823534bdb308eb0.zip llvm-e9be1e7d843bed90f1270c113823534bdb308eb0.tar.gz llvm-e9be1e7d843bed90f1270c113823534bdb308eb0.tar.bz2 |
[flang] Fix checking of argument passing for parameterized derived types
We were erroneously not taking into account the constant values of LEN type
parameters of parameterized derived types when checking for argument
compatibility. The required checks are identical to those for assignment
compatibility. Since argument compatibility is checked in .../lib/Evaluate and
assignment compatibility is checked in .../lib/Semantics, I moved the common
code into .../lib/Evaluate/tools.cpp and changed the assignment compatibility
checking code to call it.
After implementing these new checks, tests in resolve53.f90 were failing
because the tests were erroneous. I fixed these tests and added new tests
to call03.f90 to test argument passing of parameterized derived types more
completely.
Differential Revision: https://reviews.llvm.org/D100989
Diffstat (limited to 'lldb/source/Commands/CommandObjectExpression.cpp')
0 files changed, 0 insertions, 0 deletions