From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5885 invoked by alias); 29 Jan 2003 18:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 5828 invoked by uid 71); 29 Jan 2003 18:16:00 -0000 Resent-Date: 29 Jan 2003 18:16:00 -0000 Resent-Message-ID: <20030129181600.5822.qmail@sources.redhat.com> Resent-From: gcc-gnats@gcc.gnu.org (GNATS Filer) Resent-Cc: gcc-prs@gcc.gnu.org, gcc-bugs@gcc.gnu.org Resent-Reply-To: gcc-gnats@gcc.gnu.org, roger.dahl@am.sony.com Received: (qmail 4218 invoked by uid 48); 29 Jan 2003 18:13:16 -0000 Message-Id: <20030129181316.4217.qmail@sources.redhat.com> Date: Wed, 29 Jan 2003 18:16:00 -0000 From: roger.dahl@am.sony.com Reply-To: roger.dahl@am.sony.com To: gcc-gnats@gcc.gnu.org X-Send-Pr-Version: gnatsweb-2.9.3 (1.1.1.1.2.31) Subject: c/9502: shift of long long broken X-SW-Source: 2003-01/txt/msg01697.txt.bz2 List-Id: >Number: 9502 >Category: c >Synopsis: shift of long long broken >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Jan 29 18:16:00 UTC 2003 >Closed-Date: >Last-Modified: >Originator: roger.dahl@am.sony.com >Release: 3.2 and 2.96 >Organization: >Environment: DJGPP MS-DOS (3.2), GCC Linux (2.96) >Description: Shift in assignment fails when type is long long and shift argument is > 31 >How-To-Repeat: unsigned long long int a = 1 << 32; Note the compiler warning message and the resulting code. >Fix: unsigned long long int a = 1; a <<= 32; >Release-Note: >Audit-Trail: >Unformatted: