[all-commits] [llvm/llvm-project] 94b4a9: [flang] Fix bogus error w/ COMMON & EQUIVALENCE (#...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Sep 18 12:24:33 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 94b4a98681bed2674d12888bffed597945fd065c
  Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
  Date:   2023-09-18 (Mon, 18 Sep 2023)

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

  Log Message:
  [flang] Fix bogus error w/ COMMON & EQUIVALENCE (#66254)

Semantic checking of COMMON blocks and EQUIVALENCE sets has an
assumption that the base storage sequence object of each COMMON block
object will also be in that COMMON block's list of objects, and emits an
error message when this is not the case. This assumption is faulty; it
is possible for a base object to have its COMMON block set during offset

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

More information about the All-commits mailing list