c++: Variable template and template parameter pack [PR96218]
authorMarek Polacek <polacek@redhat.com>
Thu, 16 Jul 2020 13:15:37 +0000 (09:15 -0400)
committerMarek Polacek <polacek@redhat.com>
Mon, 3 Aug 2020 21:43:05 +0000 (17:43 -0400)
commit50bee766bc9f4020cf1f814178155d16e80dccaa
treeda6017acebc2d48197ef88ff2254c624160cb003
parent90b43856fdff7d96d93d22970eca8a86c56e0ddc
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.
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/var-templ67.C [new file with mode: 0644]