]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/31993 (ICE with template class in variadic template class)
authorDoug Gregor <dgregor@gcc.gnu.org>
Tue, 30 Oct 2007 13:36:34 +0000 (13:36 +0000)
committerDoug Gregor <dgregor@gcc.gnu.org>
Tue, 30 Oct 2007 13:36:34 +0000 (13:36 +0000)
commit88b823145ebb0a22cbfd20ffb781a3bca69c8f45
tree7361b26a0031a395f87ecf7275303a233b1042a0
parent310750d8ec5621e9f4c33db6b18de319cd7bc7f1
re PR c++/31993 (ICE with template class in variadic template class)

2007-10-30  Douglas Gregor  <doug.gregor@gmail.com>

PR c++/31993
PR c++/32252
* pt.c (find_parameter_packs_r): Fix typo in comment.
(convert_template_argument): Look at the pattern of a pack
expansion to determine what kind of entity we're converting.
(coerce_template_parameter_pack): When we have coerced a non-type
template parameter pack, substitute into the type of that pack.
(tsubst_pack_expansion): When our substitution of a parameter pack
is a "trivial" substitution of itself, just substitute into the
pack expansion rather than actually expanding.

2007-10-30  Douglas Gregor  <doug.gregor@gmail.com>

PR c++/31993
PR c++/32252
* g++.dg/cpp0x/pr31993.C: New
* g++.dg/cpp0x/pr32252.C: New

From-SVN: r129773
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr31993.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/pr32252.C [new file with mode: 0644]
gcc/testsuite/g++.dg/parse/crash36.C