[flang-commits] [PATCH] D148833: [flang] Relax two !DIR$ IGNORE_TKR error cases with descriptor arguments

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Apr 20 12:13:08 PDT 2023


klausler created this revision.
klausler added reviewers: vzakhari, razvanlupusoru.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

Allow two currently erroneous cases of !DIR$ IGNORE_TKR errors: allocatable
and pointers, and IGNORE_TKR(R) on (other) arguments passed via descriptors.
Downgrade these cases to warnings when they appear in external interfaces,
since their implementations may well be in C.  But retain the error status
on these cases for module procedures, since the Fortran implementation
probably can't work.


https://reviews.llvm.org/D148833

Files:
  flang/lib/Evaluate/type.cpp
  flang/lib/Semantics/check-declarations.cpp
  flang/test/Semantics/ignore_tkr01.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148833.515427.patch
Type: text/x-patch
Size: 5484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230420/4c278dbc/attachment-0001.bin>


More information about the flang-commits mailing list