================
@@ -2209,7 +2201,7 @@ DeclResult Sema::CheckClassTemplate(
                         ? diag::err_friend_decl_does_not_match
                         : diag::err_member_decl_does_not_match)
           << Name << SemanticContext << /*IsDefinition*/ true << SS.getRange();
-      Invalid = true;
+      return true;
----------------
erichkeane wrote:

just do `return Diag(...`? 

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

Reply via email to