re PR c++/52043 ([C++0x] ICE: SIGSEGV in tsubst_copy (pt.c:12081) with -Wreturn-type)
authorJason Merrill <jason@redhat.com>
Tue, 31 Jan 2012 17:41:24 +0000 (12:41 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 31 Jan 2012 17:41:24 +0000 (12:41 -0500)
commit2297ab7d840966f62a70328244f4c8560d388e0a
tree9d4e6bb2fb6ca1073a2a491825302c6b14eca5d9
parent4277cddae36313ebb549ea110c7ee3eb7e62a342
re PR c++/52043 ([C++0x] ICE: SIGSEGV in tsubst_copy (pt.c:12081) with -Wreturn-type)

PR c++/52043
* cp-tree.h (PACK_EXPANSION_LOCAL_P): New.
* pt.c (make_pack_expansion, tsubst_initializer_list): Set it.
(tsubst_pack_expansion): Check it.

From-SVN: r183768
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/pt.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/variadic122.C [new file with mode: 0644]