This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/13788] Zero propogate right shift in static final int initializer causes error
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 27 Jun 2005 16:52:31 -0000
- Subject: [Bug java/13788] Zero propogate right shift in static final int initializer causes error
- References: <20040121055330.13788.meganandaj@pacific.net.au>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tromey at gcc dot gnu dot org 2005-06-27 16:52 -------
The problem here is that the code in patch_binop that
converts URSHIFT_EXPR to RSHIFT_EXPR modifies the type and
code of the tree in place -- but that is incorrect as it misses
the final cast back to a signed type.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13788