This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51507] [C++0x] Function parameter pack doesn't use in template-argument-list
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 23 Dec 2011 22:00:21 +0000
- Subject: [Bug c++/51507] [C++0x] Function parameter pack doesn't use in template-argument-list
- Auto-submitted: auto-generated
- References: <bug-51507-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51507
--- Comment #1 from Jason Merrill <jason at gcc dot gnu.org> 2011-12-23 22:00:21 UTC ---
Author: jason
Date: Fri Dec 23 22:00:13 2011
New Revision: 182668
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182668
Log:
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.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic121.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/cp/search.c
trunk/gcc/testsuite/ChangeLog