[clang] [Clang][Modules] Fix generic lambda local capture mapping mismatch in template instantiation (PR #202248)
Ivo Popov via cfe-commits
cfe-commits at lists.llvm.org
Sat Jun 27 16:31:04 PDT 2026
================
@@ -498,6 +498,9 @@ bool serialization::needsAnonymousDeclarationNumber(const NamedDecl *D) {
if (D->getLexicalDeclContext()->isFunctionOrMethod()) {
if (auto *VD = dyn_cast<VarDecl>(D))
return VD->isStaticLocal();
+ if (const auto *TD = dyn_cast<TagDecl>(D))
+ if (TD->getLexicalDeclContext()->isDependentContext())
+ return false;
----------------
ipopov wrote:
Done.
https://github.com/llvm/llvm-project/pull/202248
More information about the cfe-commits
mailing list