From 183407eee40eeb1aa710d1b41eb7e68a2664849b Mon Sep 17 00:00:00 2001 From: pzhao Date: Fri, 11 Jun 2010 03:54:28 +0000 Subject: 2010-06-11 Shujing Zhao * 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160591 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cp/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cp/init.c') diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 66451b1e356..84e486cea46 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, -- cgit v1.2.1