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

--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>:

https://gcc.gnu.org/g:48c3e5a4f935d6b8cd9ef7c51995e3b29ceb8be7

commit r15-1000-g48c3e5a4f935d6b8cd9ef7c51995e3b29ceb8be7
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Mon Jun 3 23:07:08 2024 +0200

    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  <ja...@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.

Reply via email to