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
This commit is contained in:
Jakub Jelinek 2007-09-22 23:19:17 +02:00
parent 7dded683fd
commit b6efedac9d

View File

@ -1,3 +1,11 @@
2007-09-20 Jakub Jelinek <jakub@redhat.com>
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.
2007-09-20 Paolo Carlini <pcarlini@suse.de>
PR c++/33460