[clang] Fix crash on defaulted comparison recovery in Sema and AST (PR #210668)

purnima shrivastava via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 5 01:26:25 PDT 2026


================
@@ -9042,7 +9042,7 @@ bool Sema::CheckExplicitlyDefaultedComparison(Scope *S, FunctionDecl *FD,
 
   // Perform any unqualified lookups we're going to need to default this
   // function.
-  if (S) {
+  if (S && !FD->isInvalidDecl()) {
----------------
purnima-nlp wrote:

Correct 

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


More information about the cfe-commits mailing list