[all-commits] [llvm/llvm-project] 7eec2f: [flang] Avoid infinite recursion in common block c...

Leandro Lupori via All-commits all-commits at lists.llvm.org
Mon Feb 13 05:48:57 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7eec2f2f218cd23a055dc81295c930a0674f5797
      https://github.com/llvm/llvm-project/commit/7eec2f2f218cd23a055dc81295c930a0674f5797
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2023-02-13 (Mon, 13 Feb 2023)

  Changed paths:
    M flang/lib/Semantics/resolve-names.cpp

  Log Message:
  -----------
  [flang] Avoid infinite recursion in common block check

Don't call CheckCommonBlockDerivedType() recursively if the
derived type symbol is the same symbol that is already being
processed. This can happen when a component is a pointer of the
same type as its parent component, for instance.

Fixes #60230

Reviewed By: klausler

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




More information about the All-commits mailing list