You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[clang] Concepts: support pack expansions for type constraints
This reverts an earlier attempt to support these expansions,
which was limited to type arguments and which subverted the purpose
of SubstTemplateTypeParmType.
This propagates the ArgumentPackSubstitutionIndex along with the
AssociatedConstraint, so that the pack expansion works, without
needing any new transforms or otherwise any changes to the template
instanntiation process.
This keeps the tests from the reverted commits, and adds a few more
showing the new solution also works for NTTPs.
This patch is incomplete:
* It is likely missing plumbing the ArgumentPackSubstitutionIndex
into more places.
* The Normalization cache is not adapted so it indexes on the
ArgumentPackSubstitutionIndex as well.
One new test is added, which in any case shows an ambiguous call,
but if the normalization cache were corrected, the reason for
ambighuity would change from subsumption both ways, to neither
subsumes the other.
I am not sure if the current language rules would allow
for a test case where the pack index would break an ambiguity,
this is left for future consideration.
Fixes#131798
0 commit comments