================
@@ -18461,6 +18408,9 @@ NamedDecl *Sema::ActOnFriendFunctionDecl(Scope *S, 
Declarator &D,
                                           TemplateParams, AddToScope);
   if (!ND) return nullptr;
 
+  if (WasQualifiedFriendDef)
+    ND->setInvalidDecl();
----------------
Serosh-commits wrote:

u are right i will remove it 

https://github.com/llvm/llvm-project/pull/186398
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to