re PR c++/51507 ([C++0x] Function parameter pack doesn't use in template-argument...
authorJason Merrill <jason@redhat.com>
Fri, 23 Dec 2011 22:00:13 +0000 (17:00 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 23 Dec 2011 22:00:13 +0000 (17:00 -0500)
commitef2361a9e57dacabbf1179f5e5b472ab43d33153
tree338772733743ae449f0b075f0f36a8425c34db83
parentd54ce1dfc67ccdbb602a3ac011cfd87dccddcab2
re PR c++/51507 ([C++0x] Function parameter pack doesn't use in template-argument-list)

PR c++/51507
* search.c (at_function_scope_p): Also check cfun.
* pt.c (tsubst_pack_expansion): Check it instead of
cp_unevaluated_operand.
(instantiate_template_1): Clear current_function_decl.

From-SVN: r182668
gcc/cp/ChangeLog
gcc/cp/pt.c
gcc/cp/search.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/variadic121.C [new file with mode: 0644]