aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-10-23 06:36:37 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-10-23 06:36:37 +0000
commit583ca5a08d1de95538ffdb57c43a0babd1630d51 (patch)
tree1a1c1e08ea2fc1be524d29e719d96de2b1ee7ceb /gcc/cp
parentf9808f81c98e92f3d590391f7924585208725c94 (diff)
downloadgcc-583ca5a08d1de95538ffdb57c43a0babd1630d51.zip
gcc-583ca5a08d1de95538ffdb57c43a0babd1630d51.tar.gz
gcc-583ca5a08d1de95538ffdb57c43a0babd1630d51.tar.bz2
call.c (standard_conversion): Use RVALUE_CONVs for all expressions that satisfy lvalue_p...
* call.c (standard_conversion): Use RVALUE_CONVs for all expressions that satisfy lvalue_p, not just those that satisfy real_lvalue_p. From-SVN: r37013
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/call.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 88f8c8d..635105c 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,9 @@
2000-10-22 Mark Mitchell <mark@codesourcery.com>
+ * call.c (standard_conversion): Use RVALUE_CONVs for all
+ expressions that satisfy lvalue_p, not just those that satisfy
+ real_lvalue_p.
+
* optimize.c (copy_body_r): Don't treat CALL_EXPRs specially.
* typeck.c (c_sizeof): Return an expression of `size_t' type,
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index af79984..c31333e 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 */