From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11408 invoked by alias); 29 Aug 2008 16:59:02 -0000 Received: (qmail 10648 invoked by uid 48); 29 Aug 2008 16:57:42 -0000 Date: Fri, 29 Aug 2008 16:59:00 -0000 Message-ID: <20080829165742.10647.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/37281] bad code generation with enum and -m32 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "gmorin1 at bloomberg dot net" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg02377.txt.bz2 ------- Comment #2 from gmorin1 at bloomberg dot net 2008-08-29 16:57 ------- I thought it was correct because it seems that the standard allows to cast explicity inside the range. The range is not the one of the integral type but the one of smallest bit field that can stop all the values. So you're completely correct. Sorry. -- gmorin1 at bloomberg dot net changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37281