[all-commits] [llvm/llvm-project] b6fce8: [flang] Fix bogus errors from SIZE/SHAPE/UBOUND on...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Jun 23 10:32:44 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b6fce8b92df5dca2115e8462ae2a1849d7dd66b0
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-06-23 (Thu, 23 Jun 2022)

  Changed paths:
    M flang/include/flang/Evaluate/tools.h
    M flang/lib/Evaluate/intrinsics.cpp
    M flang/test/Semantics/misc-intrinsics.f90

  Log Message:
  [flang] Fix bogus errors from SIZE/SHAPE/UBOUND on assumed-shape

While it is indeed an error to use SIZE, SHAPE, or UBOUND on an
assumed-shape dummy argument without also supplying a DIM= argument
to the intrinsic function, it is *not* an error to use these intrinsic
functions on sections or expressions of such arrays.  Refine the test
used for the error message.

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

More information about the All-commits mailing list