[flang] Support check for BIND statement entity
authorPeixin-Qiao <qiaopeixin@huawei.com>
Wed, 29 Jun 2022 03:25:19 +0000 (11:25 +0800)
committerPeixin-Qiao <qiaopeixin@huawei.com>
Wed, 29 Jun 2022 03:25:19 +0000 (11:25 +0800)
commit779d2470a45393b981eff706662922f320859681
tree7e4a9b09026324110ab74d61cead7c2d8e5012c5
parentc967c3d39bc0dc247052a952bd84a8b539f54e45
[flang] Support check for BIND statement entity

As Fortran 2018 8.6.4(1), the BIND statement specifies the BIND attribute
for a list of variables and common blocks.

Reviewed By: klausler

Differential Revision: https://reviews.llvm.org/D127120
flang/lib/Semantics/check-declarations.cpp
flang/lib/Semantics/resolve-names.cpp
flang/test/Semantics/bind-c02.f90 [new file with mode: 0644]