aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/cxx-pretty-print.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2013-09-15 15:34:34 -0400
committerJason Merrill <jason@gcc.gnu.org>2013-09-15 15:34:34 -0400
commit73f4e2d261705d356b2283ae1576e495b74e7992 (patch)
tree73fd2b3744f6e61e6845b8bf67f1db8dbd5e42ee /gcc/cp/cxx-pretty-print.c
parent018795f47711aa9d4a541a7bae0f27efeea66f12 (diff)
downloadgcc-73f4e2d261705d356b2283ae1576e495b74e7992.zip
gcc-73f4e2d261705d356b2283ae1576e495b74e7992.tar.gz
gcc-73f4e2d261705d356b2283ae1576e495b74e7992.tar.bz2
re PR c++/41933 ([c++0x] lambdas and variadic templates don't work together)
PR c++/41933 * cp-tree.h (DECL_PACK_P): Replace FUNCTION_PARAMETER_PACK_P. * cxx-pretty-print.c (direct_declarator): Adjust. * decl2.c (cp_build_parm_decl): Adjust. * pt.c (function_parameter_pack_p): Adjust. (find_parameter_packs_r, push_template_decl_real): Adjust. (tsubst_pack_expansion, tsubst_decl): Adjust. (regenerate_decl_from_template, instantiate_decl): Adjust. From-SVN: r202604
Diffstat (limited to 'gcc/cp/cxx-pretty-print.c')
-rw-r--r--gcc/cp/cxx-pretty-print.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/cxx-pretty-print.c b/gcc/cp/cxx-pretty-print.c
index 86d8b47..bcef876 100644
--- a/gcc/cp/cxx-pretty-print.c
+++ b/gcc/cp/cxx-pretty-print.c
@@ -1527,7 +1527,7 @@ cxx_pretty_printer::direct_declarator (tree t)
{
pp_cxx_space_for_pointer_operator (this, TREE_TYPE (t));
- if ((TREE_CODE (t) == PARM_DECL && FUNCTION_PARAMETER_PACK_P (t))
+ if ((TREE_CODE (t) == PARM_DECL && DECL_PACK_P (t))
|| template_parameter_pack_p (t))
/* A function parameter pack or non-type template
parameter pack. */