2 Commits

Author SHA1 Message Date
Kelvin Li
3d3c63da6b
[flang] Add structure constructor with allocatable component (#77845)
Enable the structure constructor with allocatable component support. 
Handling of `null()` for the allocatable component is added.
2024-01-17 11:24:05 -05:00
Peter Klausler
b57bc158ea [flang] Catch obscure structure constructor error
A scalar value in a structure constructor may correspond to an
array component in the derived type only when that component has
a shape to which the scalar value may be expanded.

Differential Revision: https://reviews.llvm.org/D143822
2023-02-13 15:24:35 -08:00