* call.c (initialize_reference): Tweak error message.
From-SVN: r153508
This commit is contained in:
parent
14d4edefbe
commit
fc77a3d812
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
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 "
|
||||
|
|
Loading…
Add table
Reference in a new issue