[clang] [clang] fix error recovery for invalid member specializations (PR #207068)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 1 12:50:51 PDT 2026
================
@@ -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
More information about the cfe-commits
mailing list