* parse.y (patch_assignment): Don't modify lhs_type for
reference assignments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@76382
138bc75d-0d04-0410-961f-
82ee72b054a4
+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.
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 */
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 */
/* 15.25.2 If we have a compound assignment, convert RHS into the
type of the LHS */