From: redi Date: Fri, 14 May 2010 05:32:48 +0000 (+0000) Subject: 2010-05-14 Jonathan Wakely X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3fdc153f58097930c5f4ad3a97d093155f66ec98;p=thirdparty%2Fgcc.git 2010-05-14 Jonathan Wakely * call.c (build_new_method_call): Change warning text. * typeck2.c (build_functional_cast): Change error text. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159385 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index d21c7137eede..291881c58b26 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2010-05-14 Jonathan Wakely + + * call.c (build_new_method_call): Change warning text. + * typeck2.c (build_functional_cast): Change error text. + 2010-05-14 Shujing Zhao PR c++/30566 diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 6ed53dcb6749..c0639920cf92 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -6443,8 +6443,8 @@ build_new_method_call (tree instance, tree fns, VEC(tree,gc) **args, /* This is not an error, it is runtime undefined behavior. */ warning (0, (DECL_CONSTRUCTOR_P (current_function_decl) ? - "abstract virtual %q#D called from constructor" - : "abstract virtual %q#D called from destructor"), + "pure virtual %q#D called from constructor" + : "pure virtual %q#D called from destructor"), fn); if (TREE_CODE (TREE_TYPE (fn)) == METHOD_TYPE diff --git a/gcc/cp/typeck2.c b/gcc/cp/typeck2.c index d61ec0a6fad5..4a92b7c5c810 100644 --- a/gcc/cp/typeck2.c +++ b/gcc/cp/typeck2.c @@ -1580,7 +1580,7 @@ build_functional_cast (tree exp, tree parms, tsubst_flags_t complain) if (TREE_CODE (type) == REFERENCE_TYPE && !parms) { - error ("invalid value-initialization of reference types"); + error ("invalid value-initialization of reference type"); return error_mark_node; }