[clang] [Clang] Substitute non dependent concepts in constraints (PR #163827)

Corentin Jabot via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 17 00:03:38 PDT 2025


================
@@ -2249,8 +2287,14 @@ NormalizedConstraint *NormalizedConstraint::fromConstraintExpr(
       // Use canonical declarations to merge ConceptDecls across
       // different modules.
       ConceptDecl *CD = CSE->getNamedConcept()->getCanonicalDecl();
+
+      ExprResult Res =
+          SubstituteConceptsInConstrainExpression(S, D, CSE, SubstIndex);
+      if (!Res.isUsable())
+        return nullptr;
+
----------------
cor3ntin wrote:

Yup  - but we only do that if we find concepts template arguments, so I am not concerned

https://github.com/llvm/llvm-project/pull/163827


More information about the cfe-commits mailing list