This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33091] [c++0x] ICE using remove_reference on variadic param pack
- From: "dgregor at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Dec 2007 19:27:30 -0000
- Subject: [Bug c++/33091] [c++0x] ICE using remove_reference on variadic param pack
- References: <bug-33091-14909@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from dgregor at gcc dot gnu dot org 2007-12-04 19:27 -------
Subject: Bug 33091
Author: dgregor
Date: Tue Dec 4 19:27:14 2007
New Revision: 130604
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130604
Log:
2007-12-04 Douglas Gregor <doug.gregor@gmail.com>
PR c++/33091
* pt.c (unify_pack_expansion): If we didn't deduce any actual
bindings for the template parameter pack, don't try to keep the
empty deduced arguments.
(unify): If a parameter is a template-id whose template argument
list contains a pack expansion that is not at the end, then we
cannot unify against that template-id.
2007-12-04 Douglas Gregor <doug.gregor@gmail.com>
PR c++/33091
* g++.dg/cpp0x/variadic-unify.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic-unify.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33091