diff options
author | Peter Klausler <35819229+klausler@users.noreply.github.com> | 2024-03-01 15:56:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-01 15:56:40 -0800 |
commit | 1c530b3d9f86422cbc0417ea8ec97a462e9abe26 (patch) | |
tree | 10a08c11c3a77d61f6a81dc46aef3ef571923df1 /flang/lib/Semantics/pointer-assignment.cpp | |
parent | e8a9aa26f708ec59cb3a0c37767817c069fb12f0 (diff) | |
download | llvm-1c530b3d9f86422cbc0417ea8ec97a462e9abe26.zip llvm-1c530b3d9f86422cbc0417ea8ec97a462e9abe26.tar.gz llvm-1c530b3d9f86422cbc0417ea8ec97a462e9abe26.tar.bz2 |
[flang] Whether a procedure's interface is explicit or not is not a d… (#82796)
…istinguishing characteristic
We note whether a procedure's interface is explicit or implicit as an
attribute of its characteristics, so that other semantics can be checked
appropriately, but this internal attribute should not be used as a
distinguishing characteristic in itself.
Fixes https://github.com/llvm/llvm-project/issues/81876.
Diffstat (limited to 'flang/lib/Semantics/pointer-assignment.cpp')
-rw-r--r-- | flang/lib/Semantics/pointer-assignment.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/flang/lib/Semantics/pointer-assignment.cpp b/flang/lib/Semantics/pointer-assignment.cpp index 4c293e8..58155a2 100644 --- a/flang/lib/Semantics/pointer-assignment.cpp +++ b/flang/lib/Semantics/pointer-assignment.cpp @@ -362,7 +362,8 @@ bool PointerAssignmentChecker::Check(parser::CharBlock rhsName, bool isCall, std::optional<std::string> warning; CharacterizeProcedure(); if (std::optional<MessageFixedText> msg{evaluate::CheckProcCompatibility( - isCall, procedure_, rhsProcedure, specific, whyNot, warning)}) { + isCall, procedure_, rhsProcedure, specific, whyNot, warning, + /*ignoreImplicitVsExplicit=*/isCall)}) { Say(std::move(*msg), description_, rhsName, whyNot); return false; } |