[all-commits] [llvm/llvm-project] b8641b: [flang] Don't compute pointer component procedure ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Aug 8 15:59:31 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b8641bfc4c2d488c7a09a556728f10340d5c8819
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-08-08 (Mon, 08 Aug 2022)

  Changed paths:
    M flang/lib/Semantics/pointer-assignment.cpp

  Log Message:
  [flang] Don't compute pointer component procedure characteristics when not needed

When a procedure pointer component has an interface that is a forward
reference to a procedure, syntax errors can be emitted if there is
a structure constructor that tries to initialize that component,
since its characteristics are not yet known; however, when the
initializer is a bare NULL(with no mold), those characteristics
don't matter.  Make the characterization of the procedure pointer
component take place only when needed.

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

More information about the All-commits mailing list