[all-commits] [llvm/llvm-project] 594700: [flang] Warn about construct names that are not di...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Sun Feb 12 11:43:06 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 594700c12247e64a623043164fc10a93d59f5068
https://github.com/llvm/llvm-project/commit/594700c12247e64a623043164fc10a93d59f5068
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2023-02-12 (Sun, 12 Feb 2023)
Changed paths:
M flang/docs/Extensions.md
M flang/lib/Semantics/resolve-names.cpp
M flang/test/Semantics/OpenACC/acc-branch.f90
Log Message:
-----------
[flang] Warn about construct names that are not distinct in the inclusive scope
f18 implements BLOCK scoping for construct names, like most but not all Fortran
compilers, but in the 2018 standard such names are defined to be local identifiers
whose scope is the inclusive scope -- i.e., the subprogram or main program.
Detect usage that depends on this extension and emit a portability warning.
Differential Revision: https://reviews.llvm.org/D143776
More information about the All-commits
mailing list