summaryrefslogtreecommitdiff
path: root/gcc/cp/call.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-23 06:36:37 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2000-10-23 06:36:37 +0000
commit88d223efaad04ffeee8df0b109fe1bd0e940373c (patch)
tree1a1c1e08ea2fc1be524d29e719d96de2b1ee7ceb /gcc/cp/call.c
parentbc33ff055378b6d58d4b2c9df56e0f23e7944229 (diff)
downloadgcc-88d223efaad04ffeee8df0b109fe1bd0e940373c.tar.gz
* call.c (standard_conversion): Use RVALUE_CONVs for all
expressions that satisfy lvalue_p, not just those that satisfy real_lvalue_p. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37013 138bc75d-0d04-0410-961f-82ee72b054a4
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 af79984a396..c31333e9608 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -685,7 +685,7 @@ standard_conversion (to, from, expr)
fcode = TREE_CODE (from);
conv = build_conv (LVALUE_CONV, from, conv);
}
- else if (fromref || (expr && real_lvalue_p (expr)))
+ else if (fromref || (expr && lvalue_p (expr)))
conv = build_conv (RVALUE_CONV, from, conv);
/* Allow conversion between `__complex__' data types */