[flang] Add check for conflict of BIND(C) and Parameter attributes
authorPeixinQiao <qiaopeixin@huawei.com>
Thu, 2 Jun 2022 12:58:05 +0000 (20:58 +0800)
committerPeixinQiao <qiaopeixin@huawei.com>
Thu, 2 Jun 2022 12:58:05 +0000 (20:58 +0800)
commite2ac99b79d6f36de93775aa683a4e439cb4b5344
tree966312dd94056254b9e0f2a2b4974a4875acbd9c
parent30ad481e87ca7cd2250bd5771ab66ddfe623eb10
[flang] Add check for conflict of BIND(C) and Parameter attributes

The entity with BIND(C) attribute cannot be a named constant, so the
BIND(C) and parameter attributes are conflicted. Add check for it.

Reviewed By: klausler

Differential Revision: https://reviews.llvm.org/D126654
flang/lib/Semantics/check-declarations.cpp
flang/test/Semantics/declarations02.f90 [new file with mode: 0644]