[all-commits] [llvm/llvm-project] 166563: [flang] Fix spurious error with COMMON and EQUIVAL...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Sep 23 16:04:22 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 166563fdc7e92130122fe386c29806ac4048a907
      https://github.com/llvm/llvm-project/commit/166563fdc7e92130122fe386c29806ac4048a907
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-09-23 (Fri, 23 Sep 2022)

  Changed paths:
    M flang/lib/Semantics/compute-offsets.cpp
    M flang/test/Semantics/offsets03.f90

  Log Message:
  -----------
  [flang] Fix spurious error with COMMON and EQUIVALENCE

f18 emits an error message when two objects related by EQUIVALENCE
to a third are specified as members of a COMMON block.  This is not
always a sign of an error, however; it is possible for multiple objects
in a COMMON block to all be equivalenced to distinct offsets in another
object in a way that is consistent.  So refine the check.

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




More information about the All-commits mailing list