[clang] [Clang][Concepts] Fix a constraint comparison regression for out-of-line ClassTemplateDecls (PR #102587)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 9 06:25:59 PDT 2024
================
@@ -971,9 +971,12 @@ static const Expr *SubstituteConstraintExpressionWithoutSatisfaction(
// this may happen while we're comparing two templates' constraint
// equivalence.
LocalInstantiationScope ScopeForParameters(S);
- if (auto *FD = DeclInfo.getDecl()->getAsFunction())
- for (auto *PVD : FD->parameters())
- ScopeForParameters.InstantiatedLocal(PVD, PVD);
+ if (const NamedDecl *D = DeclInfo.getDecl()) {
+ const FunctionDecl *FD = D->getAsFunction();
----------------
cor3ntin wrote:
When is D null?
https://github.com/llvm/llvm-project/pull/102587
More information about the cfe-commits
mailing list