[all-commits] [llvm/llvm-project] 458d9f: [flang] Catch more bad TARGET= arguments to ASSOCI...

Peter Klausler via All-commits all-commits at lists.llvm.org
Tue Aug 8 11:44:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 458d9fbdc7f76dd5167f90201f890f93ab0c5a25
      https://github.com/llvm/llvm-project/commit/458d9fbdc7f76dd5167f90201f890f93ab0c5a25
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-08-08 (Tue, 08 Aug 2023)

  Changed paths:
    M flang/lib/Semantics/check-call.cpp
    M flang/test/Semantics/associated.f90

  Log Message:
  -----------
  [flang] Catch more bad TARGET= arguments to ASSOCIATED()

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.

Differential Revision: https://reviews.llvm.org/D157341




More information about the All-commits mailing list