================
@@ -291,6 +291,12 @@ class ASTDeclUnmerger : public
DeclVisitor<ASTDeclUnmerger> {
void VisitVarDecl(VarDecl *D) { withdraw(D); }
void VisitTagDecl(TagDecl *D) {
+ // The enumerators of an unscoped enumeration are visible in the enclosing
+ // context.
+ if (auto *ED = dyn_cast<EnumDecl>(D);
----------------
vgvassilev wrote:
Shouldn't that code be in its own VisitEnumDecl implementation?
https://github.com/llvm/llvm-project/pull/228370
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits