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)
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

index c9316c695fc129910d2062c5dfa2f6b92d73c2dc..5310aa9e4a96e871602531d4d811e252b77b558b 100644 (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