[all-commits] [llvm/llvm-project] 7ff920: [flang] Catch errors with intrinsic array inquiry ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Sep 17 09:25:07 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ff920826c8d09404803ae5225341218589beb18
      https://github.com/llvm/llvm-project/commit/7ff920826c8d09404803ae5225341218589beb18
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-09-17 (Fri, 17 Sep 2021)

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

  Log Message:
  -----------
  [flang] Catch errors with intrinsic array inquiry functions

The intrinsic inquiry functions SIZE and UBOUND -- but not LBOUND --
require a DIM= argument if their first argument is an assumed-size
array.  The intrinsic SHAPE must not be used with an assumed-size
array.

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




More information about the All-commits mailing list