[all-commits] [llvm/llvm-project] fac00d: [flang] Fix ENUMERATOR declarations in nested scopes
Peter Klausler via All-commits
all-commits at lists.llvm.org
Sun Jan 29 15:55:44 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fac00d1b5d3923129afc3443bfb8fa40c9dbc2c8
https://github.com/llvm/llvm-project/commit/fac00d1b5d3923129afc3443bfb8fa40c9dbc2c8
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2023-01-29 (Sun, 29 Jan 2023)
Changed paths:
M flang/lib/Semantics/resolve-names.cpp
Log Message:
-----------
[flang] Fix ENUMERATOR declarations in nested scopes
ENUMERATOR declarations are checking for conflicts between new
enumerator names and names in both the local scope and scopes
that contain it. ENUMERATOR declarations belong to the local
scope and so only a conflict with a name therein is an error.
(In short, use FindInScope rather than FindSymbol.)
Differential Revision: https://reviews.llvm.org/D142773
More information about the All-commits
mailing list