From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19900 invoked by alias); 27 Jun 2005 16:52:33 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 19743 invoked by uid 48); 27 Jun 2005 16:52:31 -0000 Date: Mon, 27 Jun 2005 16:52:00 -0000 Message-ID: <20050627165231.19742.qmail@sourceware.org> From: "tromey at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040121055330.13788.meganandaj@pacific.net.au> References: <20040121055330.13788.meganandaj@pacific.net.au> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug java/13788] Zero propogate right shift in static final int initializer causes error X-Bugzilla-Reason: CC X-SW-Source: 2005-06/txt/msg03247.txt.bz2 List-Id: ------- 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