commit 89cc0cffc8699110449f9f609ee9af8ec03c78c8 Author: jason Date: Sat Oct 17 06:11:21 2009 +0000 PR c++/38888 * error.c (dump_template_bindings): Wrap argument packs in {}. diff --git a/gcc/cp/error.c b/gcc/cp/error.c index b50704a..ce5660f 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -311,7 +311,13 @@ dump_template_bindings (tree parms, tree args, VEC(tree,gc)* typenames) pp_equal (cxx_pp); pp_cxx_whitespace (cxx_pp); if (arg) - dump_template_argument (arg, TFF_PLAIN_IDENTIFIER); + { + if (ARGUMENT_PACK_P (arg)) + pp_cxx_left_brace (cxx_pp); + dump_template_argument (arg, TFF_PLAIN_IDENTIFIER); + if (ARGUMENT_PACK_P (arg)) + pp_cxx_right_brace (cxx_pp); + } else pp_string (cxx_pp, M_(""));