[Bug c++/69515] partial specialization of variable templates is broken
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 31 22:57:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69515
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue May 31 21:36:34 2016
New Revision: 236953
URL: https://gcc.gnu.org/viewcvs?rev=236953&root=gcc&view=rev
Log:
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.
Added:
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/var-templ39a.C
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/var-templ51.C
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/var-templ52.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/pt.c
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp1y/var-templ39.C
More information about the Gcc-bugs
mailing list