[all-commits] [llvm/llvm-project] 8b550a: [flang] Handle structure constructors with forward...

Pete Steinfeld via All-commits all-commits at lists.llvm.org
Tue Apr 27 12:55:57 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b550af7a9cf363d382b7042f12ab24aa13711fc
      https://github.com/llvm/llvm-project/commit/8b550af7a9cf363d382b7042f12ab24aa13711fc
  Author: Peter Steinfeld <psteinfeld at nvidia.com>
  Date:   2021-04-27 (Tue, 27 Apr 2021)

  Changed paths:
    M flang/include/flang/Semantics/expression.h
    M flang/lib/Semantics/expression.cpp
    M flang/test/Semantics/bad-forward-type.f90

  Log Message:
  -----------
  [flang] Handle structure constructors with forward references to PDTs

We were not correctly handling structure constructors that had forward
references to parameterized derived types.  I harvested the code that checks
for forward references that was used during analysis of function call
expressions and called it from there and also called it during the
analysis of structure constructors.

I also added a test that will produce an internal error without this change.

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




More information about the All-commits mailing list