OSDN Git Service

PR java/13733
authorjsturm <jsturm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Jan 2004 23:45:10 +0000 (23:45 +0000)
committerjsturm <jsturm@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Jan 2004 23:45:10 +0000 (23:45 +0000)
* 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

gcc/java/ChangeLog
gcc/java/parse.y

index d9027c0..5d9ae79 100644 (file)
@@ -1,3 +1,9 @@
+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.
index 20e6f9a..507e958 100644 (file)
@@ -12652,8 +12652,8 @@ patch_assignment (tree node, tree wfl_op1)
   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 */