This is an archive of the discontinued LLVM Phabricator instance.

[flang] Allow a generic-spec on a PUBLIC/PRIVATE statement to declare a generic
ClosedPublic

Authored by klausler on Sep 22 2022, 12:57 PM.

Details

Summary

A generic-spec can appear on a module accessibility control statement
even if it has not been declared as a generic interface, because there's
nothing else that it could be.

While here, simplify the parse tree and parser for AccessId, since
one of its alternatives is ambiguous with the other.

Diff Detail

Event Timeline

klausler created this revision.Sep 22 2022, 12:57 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Sep 22 2022, 12:57 PM
PeteSteinfeld accepted this revision.Sep 22 2022, 2:34 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Sep 22 2022, 2:34 PM