PR c++/60095 - partial specialization of variable templates
authorJason Merrill <jason@redhat.com>
Tue, 31 May 2016 19:49:16 +0000 (15:49 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 31 May 2016 19:49:16 +0000 (15:49 -0400)
commit1f032c533faf596b4627444a2a0f9f68f05f3ef0
tree48c650b8312aad72c6b80eebafb7ba43f71a687a
parentf795360d35caef4aa3a17015f415e8f3b200a3e5
PR c++/60095 - partial specialization of variable templates

PR c++/69515
PR c++/69009
* pt.c (instantiate_template_1): Don't put the partial
specialization in DECL_TI_TEMPLATE.
(partial_specialization_p, impartial_args): Remove.
(regenerate_decl_from_template): Add args parm.
(instantiate_decl): Look up the partial specialization again.

From-SVN: r236946
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/g++.dg/cpp1y/var-templ39.C
gcc/testsuite/g++.dg/cpp1y/var-templ39a.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/var-templ51.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp1y/var-templ52.C [new file with mode: 0644]