[flang-commits] [PATCH] D134446: flang] Fix spurious errors from MODULE subprograms
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu Sep 22 09:02:31 PDT 2022
klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.
[When an explicit MODULE procedure is defined in the same (sub)module
as its interface, and the interface was defined in a generic
interface of the same name, bogus errors about symbols already
having been defined will ensue. Cleaning up this aspect of name
resolution and symbol table management requires marking the
place-holding SubprogramNameDetails symbols of explicit MODULE
subprograms as such, ensuring that that attribute is not inherited
if the SubprogramNameDetails symbol is recycled as a SubprogramDetails,
and gathering some code that should have been common between
BeginSubprogram() and BeginMpSubprogram() together in one
new routine.
https://reviews.llvm.org/D134446
Files:
flang/include/flang/Semantics/symbol.h
flang/lib/Semantics/program-tree.cpp
flang/lib/Semantics/resolve-names.cpp
flang/lib/Semantics/symbol.cpp
flang/test/Semantics/nullify02.f90
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134446.462191.patch
Type: text/x-patch
Size: 7503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220922/538733f7/attachment.bin>
More information about the flang-commits
mailing list