[Bug c++/113798] [C++26] P2662R3 - Pack indexing

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu May 9 13:20:09 GMT 2024


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113798

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Note, I wonder if the paper didn't go too far with the
noptr-abstract-pack-declarator [ constant-expression[opt] ]
attribute-specifier-seq[opt]
production removal.  It removes the unwanted
T...[4]
case which ought to be parsed as pack indexing, sure, but doesn't it also
unnecessarily
make
<template ...T>
void foo (T...(int)[10])
{
}
invalid as well?


More information about the Gcc-bugs mailing list