Commit af16209f by Jason Merrill Committed by Jason Merrill

re PR c++/38888 ([C++0x] badly readable diagnostic output with variadic templates)

	PR c++/38888
	* error.c (dump_template_bindings): Wrap argument packs in {}.

From-SVN: r152925
parent 6c3f4949
2009-10-15 Jason Merrill <jason@redhat.com>
PR c++/38888
* error.c (dump_template_bindings): Wrap argument packs in {}.
PR c++/38798
* parser.c (CP_PARSER_FLAGS_NO_TYPE_DEFINITIONS): New.
(cp_parser_type_specifier): Don't try to parse a class-specifier
......
......@@ -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_("<missing>"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment