This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/13733] [tree-ssa] internal compiler error: in check_pointer_types_r, at gimplify.c:3460
- From: "jsturm at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jan 2004 01:03:02 -0000
- Subject: [Bug java/13733] [tree-ssa] internal compiler error: in check_pointer_types_r, at gimplify.c:3460
- References: <20040119014759.13733.jsturm@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jsturm at gcc dot gnu dot org 2004-01-21 01:02 -------
Please disregard my last post. The gimplifier gets this right after all, and
the Java frontend is wrong, even on mainline.
This isn't really a tree-ssa bug, it's a latent gcj bug exposed by tree-ssa.
According to JLS 15.26, the result of an assignment operator is the LHS after
assignment, not the RHS.
The following class does not compile with javac or jikes, although it is
(incorrectly) compiled by all versions of gcj I tried:
class Bug2 {
String str;
Object obj;
void reveal(String arg) {
str = (obj = arg);
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13733