This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 120a. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2026-05-31
(From submission #700.)
Subclause 13.6 [temp.type] paragraph 5 and paragraph 6 specify:
For a type template parameter pack T, T...[constant-expression] denotes a unique dependent type.
If the constant-expression of a pack-index-specifier is value-dependent, two such pack-index-specifiers refer to the same type only if their constant-expressions are equivalent (13.7.7.2 [temp.over.link]). Otherwise, two such pack-index-specifier s refer to the same type only if their indexes have the same value.
That seems to imply that pack-index-specifiers referring to different template parameter packs could be equivalent.
Proposed resolution (approved by CWG 2026-05-19):
Change and merge in 13.6 [temp.type] paragraph 5 and paragraph 6 as follows:
For a type template parameter pack T, T...[constant-expression] denotes a unique dependent type.If the constant-expression of a pack-index-specifier is value-dependent, twoTwo such pack-index-specifiers (9.2.9.4 [dcl.type.pack.index]) refer to the same type only if
- their typedef-names refer to the same template parameter pack and
- if neither of their constant-expressions is value-dependent, then they have the same value, otherwise their constant-expressions are equivalent (13.7.7.2 [temp.over.link]).
Otherwise, two such pack-index-specifier s refer to the same type only if their indexes have the same value.