[all-commits] [llvm/llvm-project] a7e5bf: [flang][runtime] Handle array components in NAMELI...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Oct 6 15:22:53 PDT 2022


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

  Changed paths:
    M flang/runtime/type-info.cpp

  Log Message:
  -----------
  [flang][runtime] Handle array components in NAMELIST input

A namelist input item that is a derived type component reference
needs additional processing when the base item or the component
is an array.  When both have rank > 0, the component reference
must of course be subscripted.

(Fixes https://gitlab-master.nvidia.com/fortran/f18-stage/-/issues/999, NAG test t/tz2.)


  Commit: fb5c2899d162e039fc92d74e8cc7706156c8173f
      https://github.com/llvm/llvm-project/commit/fb5c2899d162e039fc92d74e8cc7706156c8173f
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-10-06 (Thu, 06 Oct 2022)

  Changed paths:
    M flang/runtime/type-info.cpp

  Log Message:
  -----------
  fix


  Commit: cebf1348dfcd14b6985b31a4627891e5ffece099
      https://github.com/llvm/llvm-project/commit/cebf1348dfcd14b6985b31a4627891e5ffece099
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-10-06 (Thu, 06 Oct 2022)

  Changed paths:
    M flang/include/flang/Evaluate/variable.h
    M flang/lib/Evaluate/check-expression.cpp
    M flang/lib/Evaluate/variable.cpp
    M flang/test/Semantics/assign03.f90

  Log Message:
  -----------
  [flang] Correct epistemological edge cases for IS_CONTIGUOUS folding

Don't return a hard .FALSE. when folding IS_CONTIGUOUS() unless the
subscript triplets are discontiguous and array section is nonempty,
or if the array section is nonempty and there is a vector subscript.

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


Compare: https://github.com/llvm/llvm-project/compare/e09c958dcccf...cebf1348dfcd


More information about the All-commits mailing list