From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7845 invoked by alias); 4 May 2010 16:07:00 -0000 Received: (qmail 6430 invoked by uid 48); 4 May 2010 16:06:43 -0000 Date: Tue, 04 May 2010 16:07:00 -0000 Message-ID: <20100504160643.6429.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/42810] Enumeration with sequential values has its for-loop exit condition optimized out. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "tony3 at GarlandConsulting dot us" 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-05/txt/msg00339.txt.bz2 ------- Comment #25 from tony3 at GarlandConsulting dot us 2010-05-04 16:06 ------- (In reply to comment #24) > G++ 4.6 will no longer optimize away the exit condition unless -fstrict-enums > is specified. > I'm very encouraged by this. Thanks for responding to this concern. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42810