aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2009-10-23 14:08:03 -0400
committerJason Merrill <jason@gcc.gnu.org>2009-10-23 14:08:03 -0400
commitfc77a3d812da1434af68b9c3831314170cb9de2e (patch)
treea4a5fadb2b17c662c7682eef22badf2e558fbcf7 /gcc/cp/call.c
parent14d4edefbe8e4affa619146aa6d7e7d1df280408 (diff)
downloadgcc-fc77a3d812da1434af68b9c3831314170cb9de2e.zip
gcc-fc77a3d812da1434af68b9c3831314170cb9de2e.tar.gz
gcc-fc77a3d812da1434af68b9c3831314170cb9de2e.tar.bz2
* call.c (initialize_reference): Tweak error message.
From-SVN: r153508
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r--gcc/cp/call.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index ff22d9e..fe74d15 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 "