[clang] [clang][Sema] Improve error recovery for id-expressions referencing invalid decls (PR #81662)

Nathan Ridge via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 23 23:26:01 PDT 2024


================
@@ -3453,6 +3453,10 @@ ExprResult Sema::BuildDeclarationNameExpr(const CXXScopeSpec &SS,
                                    NeedsADL, R.isOverloadedResult(),
                                    R.begin(), R.end());
 
+  if (ULE && R.isSingleResult() && R.getFoundDecl()->isInvalidDecl()) {
----------------
HighCommander4 wrote:

Done, thanks

https://github.com/llvm/llvm-project/pull/81662


More information about the cfe-commits mailing list