aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/init.c
diff options
context:
space:
mode:
authorShujing Zhao <pearly.zhao@oracle.com>2010-06-11 03:54:28 +0000
committerShujing Zhao <pzhao@gcc.gnu.org>2010-06-11 03:54:28 +0000
commit2f5b91f52af207dbddd9da5aca54eeb8207fb37c (patch)
tree1135234233cb1f6f8a89c523354f82322391101d /gcc/cp/init.c
parent66051b6074a5641299738aa1d698fc63175ca0de (diff)
downloadgcc-2f5b91f52af207dbddd9da5aca54eeb8207fb37c.zip
gcc-2f5b91f52af207dbddd9da5aca54eeb8207fb37c.tar.gz
gcc-2f5b91f52af207dbddd9da5aca54eeb8207fb37c.tar.bz2
cp-tree.h (expr_list_kind): New type.
2010-06-11 Shujing Zhao <pearly.zhao@oracle.com> * cp-tree.h (expr_list_kind): New type. (impl_conv_rhs): New type. (build_x_compound_expr_from_list, convert_for_initialization): Adjust prototype. (typeck.c (convert_arguments): Use impl_conv_rhs and emit the diagnostics for easy translation. Change caller. (convert_for_initialization): Use impl_conv_rhs and change caller. (build_x_compound_expr_from_list): Use expr_list_kind and emit the diagnostics for easy translation. Change caller. * decl.c (bad_spec_place): New enum. (bad_specifiers): Use it and emit the diagnostics for easy translation. Change caller. * pt.c (coerce_template_parms): Put the diagnostics in full sentence. From-SVN: r160591
Diffstat (limited to 'gcc/cp/init.c')
-rw-r--r--gcc/cp/init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/init.c b/gcc/cp/init.c
index 66451b1..84e486c 100644
--- a/gcc/cp/init.c
+++ b/gcc/cp/init.c
@@ -526,7 +526,7 @@ perform_member_init (tree member, tree init)
else if (TREE_CODE (init) == TREE_LIST)
/* There was an explicit member initialization. Do some work
in that case. */
- init = build_x_compound_expr_from_list (init, "member initializer");
+ init = build_x_compound_expr_from_list (init, ELK_MEM_INIT);
if (init)
finish_expr_stmt (cp_build_modify_expr (decl, INIT_EXPR, init,