diff options
Diffstat (limited to 'gcc/cp/error.c')
-rw-r--r-- | gcc/cp/error.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/cp/error.c b/gcc/cp/error.c index 392f304..4d12a0d 100644 --- a/gcc/cp/error.c +++ b/gcc/cp/error.c @@ -36,6 +36,7 @@ along with GCC; see the file COPYING3. If not see #include "c-family/c-objc.h" #define pp_separate_with_comma(PP) pp_cxx_separate_with (PP, ',') +#define pp_separate_with_semicolon(PP) pp_cxx_separate_with (PP, ';') /* The global buffer where we dump everything. It is there only for transitional purpose. It is expected, in the near future, to be @@ -259,7 +260,7 @@ dump_template_parameter (tree parm, int flags) static void dump_template_bindings (tree parms, tree args, VEC(tree,gc)* typenames) { - int need_comma = 0; + bool need_semicolon = false; int i; tree t; @@ -283,8 +284,8 @@ dump_template_bindings (tree parms, tree args, VEC(tree,gc)* typenames) if (lvl_args && NUM_TMPL_ARGS (lvl_args) > arg_idx) arg = TREE_VEC_ELT (lvl_args, arg_idx); - if (need_comma) - pp_separate_with_comma (cxx_pp); + if (need_semicolon) + pp_separate_with_semicolon (cxx_pp); dump_template_parameter (TREE_VEC_ELT (p, i), TFF_PLAIN_IDENTIFIER); pp_cxx_whitespace (cxx_pp); pp_equal (cxx_pp); @@ -301,7 +302,7 @@ dump_template_bindings (tree parms, tree args, VEC(tree,gc)* typenames) pp_string (cxx_pp, M_("<missing>")); ++arg_idx; - need_comma = 1; + need_semicolon = true; } parms = TREE_CHAIN (parms); @@ -313,8 +314,8 @@ dump_template_bindings (tree parms, tree args, VEC(tree,gc)* typenames) FOR_EACH_VEC_ELT (tree, typenames, i, t) { - if (need_comma) - pp_separate_with_comma (cxx_pp); + if (need_semicolon) + pp_separate_with_semicolon (cxx_pp); dump_type (t, TFF_PLAIN_IDENTIFIER); pp_cxx_whitespace (cxx_pp); pp_equal (cxx_pp); |