[flang] Catch case of character array constructor with indeterminable length
authorPeter Klausler <pklausler@nvidia.com>
Wed, 19 Jul 2023 19:06:31 +0000 (12:06 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Fri, 21 Jul 2023 20:26:34 +0000 (13:26 -0700)
commit7995fa2fd6c0663e71dece3600d2e842d9c31d62
tree3d88d015e9f7cc889ae46583aa87f869ebeae4db
parent0315fca9120b84487870412adb8edc586eda704f
[flang] Catch case of character array constructor with indeterminable length

F'2023 7.8 para 5 requires that an implied DO loop with no iterations
in a character array constructor should have items whose lengths are
constant expressions independent of the value of the implied DO loop
index.

Differential Revision: https://reviews.llvm.org/D155968
flang/lib/Semantics/expression.cpp
flang/test/Semantics/array-constr-len.f90 [new file with mode: 0644]