[flang] Enforce restrictions on intrinsic assignment
authorPeter Klausler <pklausler@nvidia.com>
Fri, 4 Nov 2022 21:29:49 +0000 (14:29 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Fri, 2 Dec 2022 23:23:38 +0000 (15:23 -0800)
commitbc83d1c655c13c58e34515d8efe7784c62012437
tree6d25760a9d4e23d510f681e6d1beacfa32a5f6d3
parent28f13353b6b1bda1fb99df086faf0ad22b4505dd
[flang] Enforce restrictions on intrinsic assignment

When the left-hand side of an intrinsic assignment statement is
polymorphic, the LHS must be a whole allocatable variable or
component and may not be a coarray (10.2.2.1p1(1)).

Differential Revision: https://reviews.llvm.org/D139049
flang/lib/Semantics/expression.cpp
flang/test/Semantics/assign11.f90 [new file with mode: 0644]
flang/test/Semantics/call28.f90