[all-commits] [llvm/llvm-project] 0bb326: [flang] Fix constraint check on CLASS() entities

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jul 17 12:19:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0bb3260b7c5fe138bb8b51e04d050a94f6eb22c2
      https://github.com/llvm/llvm-project/commit/0bb3260b7c5fe138bb8b51e04d050a94f6eb22c2
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-07-17 (Mon, 17 Jul 2023)

  Changed paths:
    M flang/lib/Semantics/check-declarations.cpp
    A flang/test/Semantics/declarations06.f90
    M flang/test/Semantics/resolve44.f90
    M flang/test/Semantics/resolve71.f90

  Log Message:
  -----------
  [flang] Fix constraint check on CLASS() entities

Entities declared with CLASS() must be dummy arguments, allocatables,
or pointers.  This constraint check is currently correct for objects
but not for procedures, and getting it right needs to avoid being
confused between pointers to procedures and pointers returned by
procedures.

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




More information about the All-commits mailing list