[flang] Load allocatable or pointer box of namelist item from common block
authorValentin Clement <clementval@gmail.com>
Fri, 23 Sep 2022 05:06:33 +0000 (07:06 +0200)
committerValentin Clement <clementval@gmail.com>
Fri, 23 Sep 2022 06:30:02 +0000 (08:30 +0200)
commitc0185c8d296d6bc8cdcf211fdc19a89afa8e3222
tree4bcd32dbd104b31d42788e168c4559f61f1ac208
parent3fe71809a5d666385575358b579aae2b8a96dd07
[flang] Load allocatable or pointer box of namelist item from common block

If a namelist item is an allocatable or pointer and is also part of a common
block, the box should be loaded from the common block ref.

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D134470
flang/lib/Lower/IO.cpp
flang/test/Lower/namelist-common-block.f90 [new file with mode: 0644]