re PR c++/33091 ([c++0x] ICE using remove_reference on variadic param pack)
authorDouglas Gregor <doug.gregor@gmail.com>
Tue, 4 Dec 2007 19:27:14 +0000 (19:27 +0000)
committerDoug Gregor <dgregor@gcc.gnu.org>
Tue, 4 Dec 2007 19:27:14 +0000 (19:27 +0000)
commitdb60ff18e2cc35235d436c7e492d8564af44ea9b
treec478f5de91e148280be2fea7572e582a5530a765
parent54b7b17d73286a19d9a8f218f6ecf4d75e680046
re PR c++/33091 ([c++0x] ICE using remove_reference on variadic param pack)

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.

From-SVN: r130604
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/variadic-unify.C [new file with mode: 0644]