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

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

https://gcc.gnu.org/g:b9cb441c98f265bff86a1c228932524c5fd37dd3

commit r13-2527-gb9cb441c98f265bff86a1c228932524c5fd37dd3
Author: Jason Merrill <ja...@redhat.com>
Date:   Fri Sep 2 08:45:02 2022 -0400

    c++: diagnostic for template placeholder in parm [PR106793]

    Talking about the declarator form doesn't help when fixing that would get
    you a different error about placeholders not being valid in a parameter.

    This also adds a <> fixit, which isn't enough for most templates, but is a
    start.

            PR c++/106793

    gcc/cp/ChangeLog:

            * decl.cc (grokdeclarator): Improve placeholder diagnostics.
            * parser.cc (cp_parser_type_id_1): Add fixit.

    gcc/testsuite/ChangeLog:

            * g++.dg/cpp23/auto-array2.C: Adjust.
            * g++.dg/cpp1z/class-deduction113.C: New test.

Reply via email to