[clang] [clang] Fixed an assertion failure triggered when instantiating a template with an expr that references an invalid decl (PR #140905)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Wed May 21 11:02:29 PDT 2025
================
@@ -4552,6 +4552,9 @@ LocalInstantiationScope::findInstantiationOf(const Decl *D) {
isa<CXXDeductionGuideDecl>(D->getDeclContext()))
return nullptr;
+ if (D->isInvalidDecl())
----------------
shafik wrote:
Why can't we just check after `D = getCanonicalParmVarDecl(D);`?
https://github.com/llvm/llvm-project/pull/140905
More information about the cfe-commits
mailing list