[flang] Cope with errors with array constructors
authorpeter klausler <pklausler@nvidia.com>
Tue, 15 Jun 2021 22:18:01 +0000 (15:18 -0700)
committerpeter klausler <pklausler@nvidia.com>
Wed, 16 Jun 2021 20:44:20 +0000 (13:44 -0700)
commitec3049c79beb5ea24921dd5e4f011cf8ade1e9bd
treee3c4b2343dc7984cb90b397edfdbfdbff47a89b9
parent25073a4ecfc9b2e3cb76776185e63bfdb094cd98
[flang] Cope with errors with array constructors

When a program attempts to put something like a subprogram
into an array constructor, emit an error rather than crashing.

Differential Revision: https://reviews.llvm.org/D104336
flang/lib/Semantics/expression.cpp
flang/test/Semantics/array-constr-values.f90