[all-commits] [llvm/llvm-project] dd4145: [flang] Allow a generic-spec on a PUBLIC/PRIVATE s...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Sep 23 14:53:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dd41453f1b5ee2b393f701c9f7b0619ec1dd8744
      https://github.com/llvm/llvm-project/commit/dd41453f1b5ee2b393f701c9f7b0619ec1dd8744
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-09-23 (Fri, 23 Sep 2022)

  Changed paths:
    M flang/include/flang/Parser/parse-tree.h
    M flang/lib/Parser/Fortran-parsers.cpp
    M flang/lib/Semantics/resolve-names.cpp
    A flang/test/Semantics/modfile51.f90

  Log Message:
  -----------
  [flang] Allow a generic-spec on a PUBLIC/PRIVATE statement to declare a generic

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.

Differential Revision: https://reviews.llvm.org/D134471




More information about the All-commits mailing list