[all-commits] [llvm/llvm-project] 79508d: [flang][runtime] zero size allocation in source al...

jeanPerier via All-commits all-commits at lists.llvm.org
Sun Sep 17 23:51:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 79508db494c99e0b8748827be2e39aa42e9f225b
      https://github.com/llvm/llvm-project/commit/79508db494c99e0b8748827be2e39aa42e9f225b
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2023-09-18 (Mon, 18 Sep 2023)

  Changed paths:
    M flang/runtime/allocatable.cpp
    M flang/runtime/descriptor.cpp
    M flang/runtime/pointer.cpp
    M flang/unittests/Runtime/Allocatable.cpp
    M flang/unittests/Runtime/Pointer.cpp

  Log Message:
  -----------
  [flang][runtime] zero size allocation in source allocation (#66124)

Source allocation with a zero sized array is legal, and the resulting
allocatable/pointer should be allocated/associated.

The current code skipped the actual allocation, leading the allocatable
or pointer to look unallocated/disassociated.




More information about the All-commits mailing list