[flang-commits] [PATCH] D139146: [flang] Warn about local names that are the same as their enclosing program unit

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Thu Dec 1 14:26:51 PST 2022


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

Modules, submodules, main programs, and BLOCK DATA subprograms have names
that cannot be used within their scope, so we allow those names to be
used for other entities in the scope.  This might not be entirely
conformant with the language standard, so warn about it.


https://reviews.llvm.org/D139146

Files:
  flang/docs/Extensions.md
  flang/lib/Semantics/check-declarations.cpp
  flang/test/Semantics/OpenMP/omp-declare-target03.f90
  flang/test/Semantics/OpenMP/omp-threadprivate03.f90
  flang/test/Semantics/bind-c02.f90
  flang/test/Semantics/resolve05.f90
  flang/test/Semantics/resolve20.f90

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139146.479431.patch
Type: text/x-patch
Size: 5052 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221201/b3f859b0/attachment-0001.bin>


More information about the flang-commits mailing list