[Bug c++/96218] DR 2032: Default template-arguments of variable templates

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Aug 3 21:43:37 GMT 2020


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

--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Marek Polacek <mpolacek@gcc.gnu.org>:

https://gcc.gnu.org/g:50bee766bc9f4020cf1f814178155d16e80dccaa

commit r11-2521-g50bee766bc9f4020cf1f814178155d16e80dccaa
Author: Marek Polacek <polacek@redhat.com>
Date:   Thu Jul 16 09:15:37 2020 -0400

    c++: Variable template and template parameter pack [PR96218]

    This is DR 2032 which says that the restrictions regarding template
    parameter packs and default arguments apply to variable templates as
    well, but we weren't detecting that.

    gcc/cp/ChangeLog:

            DR 2032
            PR c++/96218
            * pt.c (check_default_tmpl_args): Also consider variable
            templates.

    gcc/testsuite/ChangeLog:

            DR 2032
            PR c++/96218
            * g++.dg/cpp1y/var-templ67.C: New test.


More information about the Gcc-bugs mailing list