[flang] Fix bogus errors about CONTIGUOUS attribute
authorPeter Klausler <pklausler@nvidia.com>
Tue, 9 May 2023 21:41:32 +0000 (14:41 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Tue, 16 May 2023 21:01:24 +0000 (14:01 -0700)
commit28cc9606c0b4a70f26b4a3eea32cf88c330b2d82
tree48264fe5c0b066e6db423e999bc6765481176306
parent191d48723f8b853a6ad65532c173c67155cbe606
[flang] Fix bogus errors about CONTIGUOUS attribute

Incorrect error messages were issuing for symbol table entries
with the CONTIGUOUS attribute that didn't deserve them, like
host association symbols.  Put the CONTIGUOUS check into
CheckObjectEntity().

Differential Revision: https://reviews.llvm.org/D150712
flang/lib/Semantics/check-declarations.cpp
flang/test/Semantics/resolve14.f90