[flang-commits] [PATCH] D145107: [flang] BIND(C, NAME=...) corrections

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Wed Mar 1 12:28:15 PST 2023


klausler created this revision.
klausler added a reviewer: vdonaldson.
klausler added a project: Flang.
Herald added subscribers: sunshaoce, jdoerfert.
Herald added a project: All.
klausler requested review of this revision.

The Fortran standard's various restrictions on the use of BIND(C)
often depend more on the presence or absence of an explicit NAME=
specification rather than on its value, but semantics and module
file generation aren't making distinctions between explicit NAME=
specifications that happen to match the default name and declarations
that don't have NAME=.  Tweak semantics and module file generation
to conform, and also complain when named BIND(C) attributes are
erroneously applied to entities that can't support them, like
ABSTRACT interfaces.


https://reviews.llvm.org/D145107

Files:
  flang/include/flang/Semantics/symbol.h
  flang/lib/Semantics/check-declarations.cpp
  flang/lib/Semantics/mod-file.cpp
  flang/lib/Semantics/mod-file.h
  flang/lib/Semantics/resolve-names.cpp
  flang/lib/Semantics/symbol.cpp
  flang/test/Semantics/bind-c04.f90
  flang/test/Semantics/bind-c05.f90
  flang/test/Semantics/declarations02.f90
  flang/test/Semantics/modfile04.f90
  flang/test/Semantics/modfile21.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145107.501631.patch
Type: text/x-patch
Size: 15497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20230301/77955b62/attachment-0001.bin>


More information about the flang-commits mailing list