[clang] [clang][NFC] Prevent scope pollution from repeat type specifiers (PR #193144)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 20 23:00:35 PDT 2026
================
@@ -5076,7 +5076,11 @@ void Parser::ParseEnumSpecifier(SourceLocation StartLoc, DeclSpec &DS,
(AllowEnumSpecifier == AllowDefiningTypeSpec::Yes ||
CanBeOpaqueEnumDeclaration);
- CXXScopeSpec &SS = DS.getTypeSpecScope();
+ // We use a temporary scope when parsing the name specifier for a
+ // declaration with additional invalid type specifiers
----------------
tbaederr wrote:
```suggestion
// declaration with additional invalid type specifiers.
```
https://github.com/llvm/llvm-project/pull/193144
More information about the cfe-commits
mailing list