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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Patrick Palka <ppa...@gcc.gnu.org>:

https://gcc.gnu.org/g:7e39d1a15f5276f72ee478a692445569bb646e65

commit r12-2860-g7e39d1a15f5276f72ee478a692445569bb646e65
Author: Patrick Palka <ppa...@redhat.com>
Date:   Wed Aug 11 15:59:22 2021 -0400

    c++: recognize class-scope non-template dguides [PR79501]

    It looks like we still don't recognize class-scope non-template
    deduction guides even after r12-2260.   This is because deduction guides
    are tagged as such in cp_parser_init_declarator after calling
    cp_parser_declarator, but in cp_parser_member_declaration we call
    cp_parser_declarator directly.

    So let's tag them in cp_parser_member_declaration as well.

            PR c++/79501

    gcc/cp/ChangeLog:

            * parser.c (maybe_adjust_declarator_for_dguide): New, split
            out from ...
            (cp_parser_init_declarator): ... here.
            (cp_parser_member_declaration): Use it.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp1z/class-deduction98.C: New test.
  • [Bug c++/79501] member deductio... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to