2010-05-14 Jonathan Wakely <jwakely.gcc@gmail.com>
* call.c (build_new_method_call): Change warning text.
* typeck2.c (build_functional_cast): Change error text.
From-SVN: r159385
+2010-05-14 Jonathan Wakely <jwakely.gcc@gmail.com>
+
+ * call.c (build_new_method_call): Change warning text.
+ * typeck2.c (build_functional_cast): Change error text.
+
2010-05-14 Shujing Zhao <pearly.zhao@oracle.com>
PR c++/30566
/* 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
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;
}