Bug 113798 - [C++26] P2662R3 - Pack indexing
Summary: [C++26] P2662R3 - Pack indexing
Status: NEW
Alias: None
Product: gcc
Classification: Unclassified
Component: c++ (show other bugs)
Version: 14.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks: c++26-core 115012
  Show dependency treegraph
 
Reported: 2024-02-07 09:45 UTC by Jakub Jelinek
Modified: 2024-09-04 16:21 UTC (History)
5 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed: 2024-02-07 00:00:00


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Jelinek 2024-02-07 09:45:31 UTC
See <https://wg21.link/P2662R3>.
Comment 1 Jakub Jelinek 2024-05-09 13:20:09 UTC
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?
Comment 2 Jakub Jelinek 2024-05-09 19:06:34 UTC
Ignore me, functions can't return arrays.
Comment 3 corentinjabot 2024-09-04 16:17:59 UTC
FYI there is an open issue for the itanium mangling https://github.com/itanium-cxx-abi/cxx-abi/issues/175