[PATCH] D98555: [flang] Ensure pointer function results are acceptable variables
Peter Klausler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 12 13:53:54 PST 2021
klausler created this revision.
klausler added reviewers: PeteSteinfeld, kiranchandramohan.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Fortran permits a reference to a function whose result is a pointer
to be used as a definable variable in any context where a
designator could appear. This patch wrings out remaining bugs
with such usage and adds more testing.
The utility predicate IsProcedurePointer(expr) had a misleading
name which has been corrected to IsProcedurePointerTarget(expr).
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D98555
Files:
flang/include/flang/Evaluate/tools.h
flang/lib/Evaluate/intrinsics.cpp
flang/lib/Evaluate/tools.cpp
flang/lib/Semantics/check-call.cpp
flang/lib/Semantics/check-io.cpp
flang/lib/Semantics/expression.cpp
flang/lib/Semantics/tools.cpp
flang/test/Semantics/call02.f90
flang/test/Semantics/call09.f90
flang/test/Semantics/call18.f90
flang/test/Semantics/modifiable01.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98555.330366.patch
Type: text/x-patch
Size: 14376 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210312/a65237b6/attachment.bin>
More information about the llvm-commits
mailing list