[flang] Enforce rest of semantic constraint C919
authorpeter klausler <pklausler@nvidia.com>
Tue, 19 Oct 2021 20:49:21 +0000 (13:49 -0700)
committerpeter klausler <pklausler@nvidia.com>
Fri, 22 Oct 2021 18:35:58 +0000 (11:35 -0700)
commitf2360e1156d086ac5ac58d7f29449adf9e75d716
tree16344bba481d8227e960b59288f850d738483d55
parente7084ceab31223a0d983996d61c24486032b537b
[flang] Enforce rest of semantic constraint C919

A reference to an allocatable or pointer component must be applied
to a scalar base object.  (This is the second part of constraint C919;
the first part is already checked.)

Differential Revision: https://reviews.llvm.org/D112241
flang/include/flang/Semantics/expression.h
flang/lib/Semantics/expression.cpp
flang/test/Semantics/deallocate01.f90