[clang] [clang-tools-extra] [clang] Concepts: support pack expansions for type constraints (PR #132626)
Matheus Izvekov via cfe-commits
cfe-commits at lists.llvm.org
Mon Mar 24 06:00:43 PDT 2025
================
@@ -70,7 +70,14 @@ struct alignas(ConstraintAlignment) AtomicConstraint {
// We do not actually substitute the parameter mappings into the
// constraint expressions, therefore the constraint expressions are
// the originals, and comparing them will suffice.
- if (ConstraintExpr != Other.ConstraintExpr)
+ if (AC.ConstraintExpr != Other.AC.ConstraintExpr)
+ return false;
+
+ // FIXME: As the normalization cache doesn't take
+ // ArgumentPackSubstitutionIndex into account,
+ // this won't have an effect.
+ if (AC.ArgumentPackSubstitutionIndex !=
+ Other.AC.ArgumentPackSubstitutionIndex)
----------------
mizvekov wrote:
@zygoloid thoughts?
https://github.com/llvm/llvm-project/pull/132626
More information about the cfe-commits
mailing list