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

--- Comment #4 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:fba228e259dd5112851527f2dbb62c5601100985

commit r12-4238-gfba228e259dd5112851527f2dbb62c5601100985
Author: Patrick Palka <ppa...@redhat.com>
Date:   Thu Oct 7 16:39:16 2021 -0400

    c++: NTTP with array/function type after substitution [PR61355]

    We're performing the [temp.param]/10 adjustment at parse time but not
    also at substitution time.

            PR c++/61355

    gcc/cp/ChangeLog:

            * pt.c (convert_template_argument): Perform array/function to
            pointer conversion on the substituted type of an NTTP.

    gcc/testsuite/ChangeLog:

            * g++.old-deja/g++.pt/nontype5.C: Adjust.
            * g++.dg/template/param6.C: New test.

Reply via email to