This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118b. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.
2025-09-28
(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-specifier s 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.
Possible resolution:
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 their constant-expressions are equivalent if value-dependent (13.7.7.2 [temp.over.link]) or otherwise have the same value.Otherwise, two such pack-index-specifier s refer to the same type only if their indexes have the same value.