* C++ PATCH to dump_template_bindings for c++/38888
@ 2009-10-17 6:20 Jason Merrill
0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2009-10-17 6:20 UTC (permalink / raw)
To: gcc-patches List
[-- Attachment #1: Type: text/plain, Size: 62 bytes --]
As requested.
Tested x86_64-pc-linux-gnu, applied to trunk.
[-- Attachment #2: 38888.patch --]
[-- Type: text/x-patch, Size: 837 bytes --]
commit 89cc0cffc8699110449f9f609ee9af8ec03c78c8
Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
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_("<missing>"));
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-17 6:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-10-17 6:20 C++ PATCH to dump_template_bindings for c++/38888 Jason Merrill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).