re PR c++/33496 (ICE with sizeof for invalid argument pack)
authorJakub Jelinek <jakub@gcc.gnu.org>
Sat, 22 Sep 2007 21:19:17 +0000 (23:19 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 22 Sep 2007 21:19:17 +0000 (23:19 +0200)
commitb6efedac9d83347ef9ba707d404b7edc4c81349f
treef1f85a72a1a51321cf88f99e998a181c4a641a22
parent7dded683fda8c47b2139b3bd7771dd53658a3b27
re PR c++/33496 (ICE with sizeof for invalid argument pack)

PR c++/33496
* pt.c (tsubst_copy) <case SIZEOF_EXPR>: Handle error_mark_node
returned from tsubst_pack_expansion.
(tsubst_copy_and_build) <case SIZEOF_EXPR>: Likewise.
(tsubst_copy_and_build) <case CONSTRUCTOR>: Likewise.

* g++.dg/cpp0x/variadic76.C: New test.
* g++.dg/cpp0x/variadic77.C: New test.
* g++.dg/cpp0x/variadic78.C: New test.

From-SVN: r128675
gcc/cp/ChangeLog