[flang-commits] [PATCH] D155491: [flang] Fix constraint check on CLASS() entities

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Jul 17 10:16:33 PDT 2023


klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a reviewer: sscalpone.
Herald added a project: All.
klausler requested review of this revision.

Entities declared with CLASS() must be dummy arguments, allocatables,
or pointers.  This constraint check is currently correct for objects
but not for procedures, and getting it right needs to avoid being
confused between pointers to procedures and pointers returned by
procedures.


https://reviews.llvm.org/D155491

Files:
  flang/lib/Semantics/check-declarations.cpp
  flang/test/Semantics/declarations06.f90
  flang/test/Semantics/resolve44.f90
  flang/test/Semantics/resolve71.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155491.541117.patch
Type: text/x-patch
Size: 6147 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230717/6cfbfd00/attachment-0001.bin>


More information about the flang-commits mailing list