From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30775 invoked by alias); 9 Apr 2010 04:44:20 -0000 Received: (qmail 30679 invoked by uid 48); 9 Apr 2010 04:44:01 -0000 Date: Fri, 09 Apr 2010 04:44:00 -0000 Message-ID: <20100409044401.30678.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/43680] G++ is too aggressive in optimizing away bounds checking with enums In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jason at gcc dot gnu dot org" 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: 2010-04/txt/msg00886.txt.bz2 ------- Comment #12 from jason at gcc dot gnu dot org 2010-04-09 04:44 ------- Created an attachment (id=20343) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20343&action=view) patch This patch causes the compiler to avoid this optimization while preserving all the related warnings (except pr33738.C which is specifically testing that this optimization is done). -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43680