[all-commits] [llvm/llvm-project] c1a778: [flang] Avoid spurious error message in function r...

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Aug 18 15:04:33 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c1a77839cc99766c4cf7ef16a323c6423de3f2a9
      https://github.com/llvm/llvm-project/commit/c1a77839cc99766c4cf7ef16a323c6423de3f2a9
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-08-18 (Thu, 18 Aug 2022)

  Changed paths:
    M flang/lib/Evaluate/characteristics.cpp

  Log Message:
  -----------
  [flang] Avoid spurious error message in function result compatibility

When checking function interface compatibility for procedure pointer
assignment/initialization or actual/dummy procedure association, don't
emit a diagnositic about function result shape incompatibility unless
the interfaces differ in rank or have distinct constant extents on a
dimension.  Function results whose dimensions are determined by dummy
arguments or host-associated variables are not necessarily incompatible.

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




More information about the All-commits mailing list