This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/44042] [4.1/4.2/4.4/4.5/4.6 Regression] Missing warning for unitialized varaible in switch statement



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]