re PR c++/33496 (ICE with sizeof for invalid argument pack)
authorJakub Jelinek <jakub@redhat.com>
Thu, 20 Sep 2007 21:21:03 +0000 (23:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 20 Sep 2007 21:21:03 +0000 (23:21 +0200)
commit4745e4eb75aed535cc05f3393dd1209ffd8bac09
tree152c32920a9618a6fbfd58200e59acead5c6f3c4
parent786025ea79bffb3746e1964e561dae17f37dc8af
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: r128630
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/variadic76.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/variadic77.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/variadic78.C [new file with mode: 0644]