[clang] [clang] Fix bad error recovery when classes are defined inside template (PR #142278)

2025-06-01 Thread Artyom Zabroda via cfe-commits
@@ -220,6 +220,14 @@ static ExprResult EvaluateAtomicConstraint( if (Inst.isInvalid()) return ExprError(); +if (const TemplateTypeParmType *TTPT = + dyn_cast(AtomicExpr->getType().getDesugaredType(S.Context))) { + TemplateTypeParmDecl *TTPD = TTPT->

[clang] [clang] Fix bad error recovery when classes are defined inside template (PR #142278)

2025-05-31 Thread Artyom Zabroda via cfe-commits
https://github.com/ArtyomZabroda created https://github.com/llvm/llvm-project/pull/142278 Fixes #91564 This is my first pull request to the LLVM and I would appreciate any feedback. >From 6fc280bb5583ee4f1713cb1447b8b86993b7abb7 Mon Sep 17 00:00:00 2001 From: Artyom Zabroda Date: Sat, 31 May