[flang-commits] [PATCH] D157341: [flang] Catch more bad TARGET= arguments to ASSOCIATED()

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Mon Aug 7 15:09:04 PDT 2023


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

The TARGET= argument to the intrinsic function ASSOCIATED() must be
a valid target for the POINTER= argument, but we are missing some
cases, such as parenthesized expressions.  Add more checking, and
restructure the logic a bit to make the case analysis structure
more clear.

Fixes llvm-test-suite/Fortran/gfortran/regression/associated_target_1.f90.


https://reviews.llvm.org/D157341

Files:
  flang/lib/Semantics/check-call.cpp
  flang/test/Semantics/associated.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157341.547972.patch
Type: text/x-patch
Size: 10844 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230807/17a3dd46/attachment-0001.bin>


More information about the flang-commits mailing list