diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 03460bb9ec1..545634889b8 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2009-10-23 Jason Merrill + + * call.c (initialize_reference): Tweak error message. + 2009-10-21 Jakub Jelinek * mangle.c (finish_mangling_get_identifier): Use diff --git a/gcc/cp/call.c b/gcc/cp/call.c index ff22d9e8674..fe74d15192f 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -7619,7 +7619,7 @@ initialize_reference (tree type, tree expr, tree decl, tree *cleanup) && !TYPE_REF_IS_RVALUE (type) && !real_lvalue_p (expr)) error ("invalid initialization of non-const reference of " - "type %qT from a temporary of type %qT", + "type %qT from an rvalue of type %qT", type, TREE_TYPE (expr)); else error ("invalid initialization of reference of type "