re PR c++/47022 (ICE: in tsubst_copy, at cp/pt.c:11682)
authorJakub Jelinek <jakub@redhat.com>
Fri, 7 Jan 2011 11:49:44 +0000 (12:49 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 7 Jan 2011 11:49:44 +0000 (12:49 +0100)
commita14e516339b8d3b5a3a35ec1c6e33e74019bb576
treed291264fa490c8d3846683eb61e314c2dda9a43e
parent4f0d010ebbaa108aa13729fc74a6738862440f9c
re PR c++/47022 (ICE: in tsubst_copy, at cp/pt.c:11682)

PR c++/47022
* pt.c (tsubst_copy_and_build): Use tsubst instead of tsubst_copy
for the second build_x_va_arg argument.

* g++.dg/template/stdarg1.C: New test.

From-SVN: r168564
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/template/stdarg1.C [new file with mode: 0644]