This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/69009] [5/6 Regression] ICE in instantiate_decl, at cp/pt.c:21511
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 May 2016 21:37:06 +0000
- Subject: [Bug c++/69009] [5/6 Regression] ICE in instantiate_decl, at cp/pt.c:21511
- Auto-submitted: auto-generated
- References: <bug-69009-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69009
--- Comment #10 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