This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/38880] [4.4 Regression] g++.dg/init/const7.C XFAILed
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2009 10:39:22 -0000
- Subject: [Bug c++/38880] [4.4 Regression] g++.dg/init/const7.C XFAILed
- References: <bug-38880-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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