[flang-commits] [PATCH] D129674: [flang] Refine semantic checks for procedure pointer assignment

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Jul 13 11:41:58 PDT 2022


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

Some procedure pointers and EXTERNAL procedures have neither
explicit interfaces nor result types; these procedures are obviously
not known to be functions, but they could be, so semantics must not
assume that they are necessarily subroutines.  Refine the procedure
pointer / dummy procedure compatibility check to handle these more
ambiguous cases and not elicit inappropriate error messages.


https://reviews.llvm.org/D129674

Files:
  flang/include/flang/Evaluate/characteristics.h
  flang/include/flang/Evaluate/tools.h
  flang/lib/Evaluate/characteristics.cpp
  flang/lib/Evaluate/intrinsics.cpp
  flang/lib/Evaluate/tools.cpp
  flang/lib/Semantics/check-call.cpp
  flang/lib/Semantics/pointer-assignment.cpp
  flang/test/Semantics/assign03.f90
  flang/test/Semantics/associated.f90
  flang/test/Semantics/call09.f90
  flang/test/Semantics/call20.f90
  flang/test/Semantics/null01.f90
  flang/test/Semantics/resolve46.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129674.444355.patch
Type: text/x-patch
Size: 29163 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220713/79873ff3/attachment-0001.bin>


More information about the flang-commits mailing list