Commit 5238574f by Jeff Sturm Committed by Jeff Sturm

re PR java/13733 (The result of an assignment operator is the LHS after assignment, not the RHS)

PR java/13733
* parse.y (patch_assignment): Don't modify lhs_type for
reference assignments.

From-SVN: r76382
parent 6ed0ecaf
2004-01-22 Jeff Sturm <jsturm@one-point.com>
PR java/13733
* parse.y (patch_assignment): Don't modify lhs_type for
reference assignments.
2004-01-20 Kelley Cook <kcook@gcc.gnu.org> 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
* Make-lang.in: Replace $(docdir) with doc. * Make-lang.in: Replace $(docdir) with doc.
......
...@@ -12652,8 +12652,8 @@ patch_assignment (tree node, tree wfl_op1) ...@@ -12652,8 +12652,8 @@ patch_assignment (tree node, tree wfl_op1)
new_rhs = try_builtin_assignconv (wfl_op1, lhs_type, rhs); new_rhs = try_builtin_assignconv (wfl_op1, lhs_type, rhs);
/* 5.2 If it failed, try a reference conversion */ /* 5.2 If it failed, try a reference conversion */
if (!new_rhs && (new_rhs = try_reference_assignconv (lhs_type, rhs))) if (!new_rhs)
lhs_type = promote_type (rhs_type); new_rhs = try_reference_assignconv (lhs_type, rhs);
/* 15.25.2 If we have a compound assignment, convert RHS into the /* 15.25.2 If we have a compound assignment, convert RHS into the
type of the LHS */ type of the LHS */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment