diff options
Diffstat (limited to 'gcc/cp/call.c')
-rw-r--r-- | gcc/cp/call.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cp/call.c b/gcc/cp/call.c index 989a84a..a8dcd2a 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -6055,7 +6055,9 @@ initialize_reference (tree type, tree expr, tree decl, tree *cleanup) "type '%T' from a temporary of type '%T'", type, TREE_TYPE (expr)); else - error ("could not convert `%E' to `%T'", expr, type); + error ("invalid initialization of reference of type " + "'%T' from expression of type '%T'", type, + TREE_TYPE (expr)); return error_mark_node; } |