[clang] [Clang][Sema] Diagnose class member access expressions naming non-existent members of the current instantiation prior to instantiation in the absence of dependent base classes (PR #84050)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 1 09:41:28 PDT 2024
================
@@ -825,7 +825,10 @@ void Sema::ActOnPragmaUnused(const Token &IdTok, Scope *curScope,
IdentifierInfo *Name = IdTok.getIdentifierInfo();
LookupResult Lookup(*this, Name, IdTok.getLocation(), LookupOrdinaryName);
- LookupParsedName(Lookup, curScope, nullptr, true);
+ LookupParsedName(Lookup, curScope,
+ /*SS=*/nullptr,
+ /*ObjectType=*/QualType(),
+ /*AllowBuiltinCreation*/ true);
----------------
erichkeane wrote:
```suggestion
/*AllowBuiltinCreation=*/ true);
```
https://github.com/llvm/llvm-project/pull/84050
More information about the cfe-commits
mailing list