[flang] Complex constructors are scalar only
authorPeter Klausler <pklausler@nvidia.com>
Fri, 14 Oct 2022 21:28:22 +0000 (14:28 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Sun, 30 Oct 2022 18:03:42 +0000 (11:03 -0700)
commit7ede0b2cc520da59e8459563cbd1a36cc8492f86
tree2247c9a120c3380cdc673cd826ecebed37f2245b
parenta280d3000b58d94161c92a688e820c0d59e889e4
[flang] Complex constructors are scalar only

The common language extension that allows arbitary expressions
to be used as components in a complex constructor (x,y) -- not both
constant, since that would make it a complex literal constant --
still have to be scalar; it's not an elemental operation like the
CMPLX() intrinsic function is.

Differential Revision: https://reviews.llvm.org/D136978
flang/lib/Semantics/expression.cpp
flang/test/Semantics/expr-errors05.f90 [new file with mode: 0644]