[all-commits] [llvm/llvm-project] dc0d56: [flang] Warn about local names that are the same a...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Sat Dec 3 17:52:08 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dc0d56febba37ba672c1800be70a3ff5a42f4769
https://github.com/llvm/llvm-project/commit/dc0d56febba37ba672c1800be70a3ff5a42f4769
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2022-12-03 (Sat, 03 Dec 2022)
Changed paths:
M flang/docs/Extensions.md
M flang/lib/Semantics/check-declarations.cpp
M flang/test/Semantics/OpenMP/omp-declare-target03.f90
M flang/test/Semantics/OpenMP/omp-threadprivate03.f90
M flang/test/Semantics/bind-c02.f90
M flang/test/Semantics/resolve05.f90
M flang/test/Semantics/resolve20.f90
Log Message:
-----------
[flang] Warn about local names that are the same as their enclosing program unit
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.
Differential Revision: https://reviews.llvm.org/D139146
More information about the All-commits
mailing list