================
@@ -18461,6 +18408,9 @@ NamedDecl *Sema::ActOnFriendFunctionDecl(Scope *S,
Declarator &D,
TemplateParams, AddToScope);
if (!ND) return nullptr;
+ if (WasQualifiedFriendDef)
+ ND->setInvalidDecl();
----------------
mizvekov wrote:
We don't really need to set this, since there is nothing invalid about the
declaration now, right?
https://github.com/llvm/llvm-project/pull/186398
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits