[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
parent
7a063c1a
Please register or sign in to comment