[all-commits] [llvm/llvm-project] 4e3bf2: [flang] Allow NULL() actual argument for procedure...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Thu Aug 25 16:23:33 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4e3bf225b7f8e540da3a96cf4f4001a68d8b2f57
https://github.com/llvm/llvm-project/commit/4e3bf225b7f8e540da3a96cf4f4001a68d8b2f57
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2022-08-25 (Thu, 25 Aug 2022)
Changed paths:
M flang/include/flang/Evaluate/tools.h
M flang/lib/Evaluate/check-expression.cpp
M flang/lib/Evaluate/intrinsics.cpp
M flang/lib/Evaluate/tools.cpp
M flang/lib/Semantics/check-call.cpp
M flang/lib/Semantics/data-to-inits.cpp
M flang/test/Semantics/call09.f90
Log Message:
-----------
[flang] Allow NULL() actual argument for procedure pointer dummy argument with unspecified intent
A NULL() pointer is a valid actual argument for a procedure pointer dummy
argument whose intent is INTENT(IN); it should also be acceptable for a
procedure pointer dummy argument with unspecified intent.
Also make it possible to discern null object pointers from null procedure
pointers, so that an attempt to use one in place of the other in a context
where the distinction matters will still elicit an error.
Differential Revision: https://reviews.llvm.org/D132687
More information about the All-commits
mailing list