[all-commits] [llvm/llvm-project] 9245f3: [flang] Validate SIZE(x, DIM=n) dimension for assum...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Sep 17 10:36:57 PDT 2021


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

  Changed paths:
    M flang/include/flang/Evaluate/tools.h
    M flang/include/flang/Semantics/tools.h
    M flang/lib/Evaluate/fold-integer.cpp
    M flang/lib/Evaluate/formatting.cpp
    M flang/lib/Evaluate/shape.cpp
    M flang/lib/Evaluate/tools.cpp
    M flang/lib/Evaluate/variable.cpp
    M flang/lib/Semantics/check-select-rank.cpp
    M flang/test/Semantics/select-rank.f90

  Log Message:
  -----------
  [flang] Validate SIZE(x,DIM=n) dimension for assumed-size array x

Catch invalid attempts to extract the unknowable extent of the last
dimension of an assumed-size array dummy argument, and clean up
problems with assumed-rank arguments in similar circumstances
exposed by testing the fix.

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




More information about the All-commits mailing list