From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7036 invoked by alias); 9 May 2010 11:13:47 -0000 Received: (qmail 7000 invoked by alias); 9 May 2010 11:13:37 -0000 Date: Sun, 09 May 2010 11:13:00 -0000 Message-ID: <20100509111337.6999.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/44042] [4.1/4.2/4.4/4.5/4.6 Regression] Missing warning for unitialized varaible in switch statement In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenther at suse dot de" 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/msg00854.txt.bz2 ------- Comment #5 from rguenther at suse dot de 2010-05-09 11:13 ------- Subject: Re: [4.1/4.2/4.4/4.5/4.6 Regression] Missing warning for unitialized varaible in switch statement On Sun, 9 May 2010, tkoenig at gcc dot gnu dot org wrote: > ------- Comment #4 from tkoenig at gcc dot gnu dot org 2010-05-09 11:12 ------- > Sorry, I cannot parse "CCP exploits undefined behavior". > > Why should there be no warning for this, when this warning > was present in gcc 3.x? because we optimize better now and the code has vanished before we get a chance to emit the warning -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44042