This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/44042] [4.1/4.2/4.4/4.5/4.6 Regression] Missing warning for unitialized varaible in switch statement
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 May 2010 11:13:37 -0000
- Subject: [Bug c/44042] [4.1/4.2/4.4/4.5/4.6 Regression] Missing warning for unitialized varaible in switch statement
- References: <bug-44042-10391@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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