From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2036 invoked by alias); 26 Jul 2004 13:03:05 -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 2027 invoked by uid 48); 26 Jul 2004 13:03:04 -0000 Date: Mon, 26 Jul 2004 13:03:00 -0000 Message-ID: <20040726130304.2026.qmail@sourceware.org> From: "paulg at chiark dot greenend dot org dot uk" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040723171525.16693.paulg@chiark.greenend.org.uk> References: <20040723171525.16693.paulg@chiark.greenend.org.uk> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/16693] [3.4/3.5 regression] Bitwise AND is lost when used within a cast to an enum of the same precision X-Bugzilla-Reason: CC X-SW-Source: 2004-07/txt/msg02906.txt.bz2 List-Id: ------- Additional Comments From paulg at chiark dot greenend dot org dot uk 2004-07-26 13:02 ------- A collegue has done some more investigation and come up with the following additional constraints. If the enum pushes into the top nibble then the problem does not occur. A similar problem occurs with unsigned short where the problem occurs if the enumeration fits into a byte. If the target variable is an unsigned int rather than a unsigned char or short the problem does not occur. -- What |Removed |Added ---------------------------------------------------------------------------- Known to work|3.3.3 |3.3.3 3.3.4 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16693