================
@@ -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 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
