PR java/13733
* parse.y (patch_assignment): Don't modify lhs_type for
reference assignments.
From-SVN: r76382
+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>
* Make-lang.in: Replace $(docdir) with doc.
new_rhs = try_builtin_assignconv (wfl_op1, lhs_type, rhs);
/* 5.2 If it failed, try a reference conversion */
- if (!new_rhs && (new_rhs = try_reference_assignconv (lhs_type, rhs)))
- lhs_type = promote_type (rhs_type);
+ if (!new_rhs)
+ new_rhs = try_reference_assignconv (lhs_type, rhs);
/* 15.25.2 If we have a compound assignment, convert RHS into the
type of the LHS */