]> git.ipfire.org Git - thirdparty/gcc.git/commit
c++: unexpanded pack in var tmpl partial spec [PR100652]
authorPatrick Palka <ppalka@redhat.com>
Tue, 9 Nov 2021 14:09:12 +0000 (09:09 -0500)
committerPatrick Palka <ppalka@redhat.com>
Tue, 9 Nov 2021 14:09:12 +0000 (09:09 -0500)
commita19f09cb03d7f69377e6d12162e5d6df78a82849
tree67a56c1059dd4d0693ce007d65b4c69331e90adf
parent0dc0947d4b67af66a57f4824232bb8020b0403f7
c++: unexpanded pack in var tmpl partial spec [PR100652]

Here we're failing to spot a bare parameter pack appearing in the argument
list of a variable template partial specialization because we only look for
them within the decl's TREE_TYPE, which is sufficient for class templates
but not for variable templates.

PR c++/100652

gcc/cp/ChangeLog:

* pt.c (push_template_decl): Check for bare parameter packs in
the argument list of a variable template partial specialization.

gcc/testsuite/ChangeLog:

* g++.dg/cpp1y/var-templ69.C: New test.
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/var-templ69.C [new file with mode: 0644]