diff options
author | Jakub Jelinek <jakub@redhat.com> | 2024-06-03 23:07:08 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2024-06-03 23:10:08 +0200 |
commit | 48c3e5a4f935d6b8cd9ef7c51995e3b29ceb8be7 (patch) | |
tree | 29d53d7c7ad4f0ceefe88233e024ea3c3f6a98f9 /gcc/tree-vect-loop.cc | |
parent | a67595d5c5d4bd4937de39158b268aed61f3d8d0 (diff) | |
download | gcc-48c3e5a4f935d6b8cd9ef7c51995e3b29ceb8be7.zip gcc-48c3e5a4f935d6b8cd9ef7c51995e3b29ceb8be7.tar.gz gcc-48c3e5a4f935d6b8cd9ef7c51995e3b29ceb8be7.tar.bz2 |
c++: Fix parsing of abstract-declarator starting with ... followed by opening paren [PR115012]
The C++26 P2662R3 Pack indexing paper mentions that both GCC
and MSVC don't handle T...[10] parameter declaration when T
is a pack. And apparently neither T...(args).
While the former will change meaning in C++26, T...(args) is still
valid even in C++26.
The following patch handles just the T...(args) case in
cp_parser_direct_declarator.
2024-06-03 Jakub Jelinek <jakub@redhat.com>
PR c++/115012
* parser.cc (cp_parser_direct_declarator): Handle
abstract declarator starting with ... followed by opening paren.
* g++.dg/cpp0x/variadic185.C: New test.
Diffstat (limited to 'gcc/tree-vect-loop.cc')
0 files changed, 0 insertions, 0 deletions