This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/71833] [4.9/5 regression] ICE on valid C++11 code with nested variadic templates: tree check: accessed elt 0 of tree_vec with 1 elts in coerce_template_parameter_pack, at cp/pt.c:7439
- 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, 26 Jul 2016 20:29:44 +0000
- Subject: [Bug c++/71833] [4.9/5 regression] ICE on valid C++11 code with nested variadic templates: tree check: accessed elt 0 of tree_vec with 1 elts in coerce_template_parameter_pack, at cp/pt.c:7439
- Auto-submitted: auto-generated
- References: <bug-71833-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71833
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jul 26 20:29:12 2016
New Revision: 238765
URL: https://gcc.gnu.org/viewcvs?rev=238765&root=gcc&view=rev
Log:
PR c++/71833 - member template with two parameter packs
* pt.c (coerce_template_parameter_pack): Fix logic for
pack index.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/variadic-nested1.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/pt.c