[all-commits] [llvm/llvm-project] 12ec5b: [flang] Catch attempts to initialize allocatable c...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Dec 16 18:16:52 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 12ec5b20c2c12bb9fec37aebed8355577698c75a
      https://github.com/llvm/llvm-project/commit/12ec5b20c2c12bb9fec37aebed8355577698c75a
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-12-16 (Fri, 16 Dec 2022)

  Changed paths:
    M flang/lib/Evaluate/initial-image.cpp
    M flang/test/Semantics/data01.f90

  Log Message:
  -----------
  [flang] Catch attempts to initialize allocatable components with DATA statement

Nice try, but no, you can't initialize an instance of a derived type using a
structure constructor that has a component corresponding to an allocatable
component.

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




More information about the All-commits mailing list