[all-commits] [llvm/llvm-project] c2f642: [flang] Derived type structural equivalence (#69376)

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Oct 30 16:41:22 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2f642d90d33a4e6c987b52e22eca4221c86c601
      https://github.com/llvm/llvm-project/commit/c2f642d90d33a4e6c987b52e22eca4221c86c601
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2023-10-30 (Mon, 30 Oct 2023)

  Changed paths:
    M flang/include/flang/Evaluate/type.h
    M flang/lib/Evaluate/type.cpp
    M flang/lib/Semantics/check-declarations.cpp
    M flang/test/Semantics/separate-mp02.f90
    M flang/test/Semantics/separate-mp03.f90
    A flang/test/Semantics/separate-mp06.f90

  Log Message:
  -----------
  [flang] Derived type structural equivalence (#69376)

F'202X 7.5.2.4 describes conditions under which two derived type
definitions are to be considered equivalent. These rules are already
implemented in Evaluate/type.cpp but not exposed for general use;
rearrange the code a little so that the compatibility checking of
separate module procedure interfaces and explicit definitions can use it
to avoid emitting a bogus error message.

Fixes https://github.com/llvm/llvm-project/issues/67946.




More information about the All-commits mailing list