[dcl.type.pack.index] Clarify pack-index-specifier rules#8725
[dcl.type.pack.index] Clarify pack-index-specifier rules#8725brevzin wants to merge 1 commit intocplusplus:mainfrom
Conversation
|
FWIW, I'd prefer |
|
Actually, the expression wording explicitly uses the wording I'm suggesting here — which suggests maybe that Do we just need a different sentence entirely here? |
|
Given that p2 currently talks about |
|
We definitely want an identifier here; nothing else can "denote a pack". (Pack expansions can appear in select places, but this is different.) Parallelism with [expr.prim.pack.index] p1 suggests the amended phrasing is a consistency improvement. |
Currently, [dcl.type.pack.index] reads:
A typedef-name is either an identifier or a simple-template-id, which suggests that maybe
something<Ts>...[0]is valid in addition toTs...[0], but the first sentence here restricts that case, since a simple-template-id can never denote a pack.But to figure that out is kind of a logic puzzle. Can we just say that more directly?