[clang] [clang] Implement CWG2877 "Type-only lookup for using-enum-declarator" (PR #95399)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 13 05:24:46 PDT 2024
================
@@ -738,16 +738,47 @@ Parser::DeclGroupPtrTy Parser::ParseUsingDeclaration(
return nullptr;
}
- if (!Tok.is(tok::identifier)) {
+ Decl *UED = nullptr;
+
+ if (Tok.is(tok::identifier)) {
----------------
cor3ntin wrote:
Line 723, `ParseOptionalCXXScopeSpecifier`, there are options to make it a type only context for error recovery (and `Conttext` is misspelled.
https://github.com/llvm/llvm-project/pull/95399
More information about the cfe-commits
mailing list