Commit fc77a3d8 by Jason Merrill Committed by Jason Merrill

* call.c (initialize_reference): Tweak error message.

From-SVN: r153508
parent 14d4edef
2009-10-23 Jason Merrill <jason@redhat.com>
* call.c (initialize_reference): Tweak error message.
2009-10-21 Jakub Jelinek <jakub@redhat.com>
* mangle.c (finish_mangling_get_identifier): Use
......
......@@ -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 "
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment