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++/38880] [4.4 Regression] g++.dg/init/const7.C XFAILed



------- Comment #6 from rguenther at suse dot de  2009-01-28 10:39 -------
Subject: Re:  [4.4 Regression] g++.dg/init/const7.C XFAILed

On Tue, 27 Jan 2009, jason at redhat dot com wrote:

> ------- Comment #5 from jason at redhat dot com  2009-01-27 23:25 -------
> Subject: Re:  [4.4 Regression] g++.dg/init/const7.C XFAILed
> 
> rguenth at gcc dot gnu dot org wrote:
> > I just found this, I tried to fix this in fold but in the end agreed with
> > Andrew that the C++ FE should do what the C FE does here.
> 
> Why do it in the FE?  This seems like a language-independent optimization.

Do it in the FE if the FE wants it to be optimized to a constant.
Otherwise sure - it is a language-independent optimization.  But fold
isn't a proper optimizer ;)

Richard.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38880


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