================
@@ -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()) {
----------------
ojhunt wrote:
I don't believe we should be getting here if the function is invalid
https://github.com/llvm/llvm-project/pull/210668
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits