[flang-commits] [PATCH] D145094: [flang] Refine procedure compatibility checking
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Wed Mar 1 11:25:50 PST 2023
klausler created this revision.
klausler added a reviewer: clementval.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a project: All.
klausler requested review of this revision.
The test for compatible function results needs to be nearly strict
equality of their types, not the usual actual/dummy type compatibility
test used in other situations. The exceptional case is that assumed
length CHARACTER function results are compatible with explicit length
results of the same kind. In particular, a function returning a
polymorphic pointer is not compatible with a function returning a
monomorphic pointer even of the same declared type.
https://reviews.llvm.org/D145094
Files:
flang/include/flang/Evaluate/type.h
flang/lib/Evaluate/characteristics.cpp
flang/lib/Evaluate/type.cpp
flang/lib/Semantics/check-call.cpp
flang/test/Semantics/assign03.f90
flang/test/Semantics/associated.f90
flang/test/Semantics/call09.f90
flang/test/Semantics/call20.f90
flang/test/Semantics/call25.f90
flang/test/Semantics/resolve46.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145094.501600.patch
Type: text/x-patch
Size: 19872 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230301/89e60feb/attachment-0001.bin>
More information about the flang-commits
mailing list