This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PR c++/35909] fix const ref binding to demoted bitfield
On Tue, Apr 29, 2008 at 05:54:40AM -0300, Alexandre Oliva wrote:
> > On Thu, Apr 24, 2008 at 10:13:55AM +0200, Richard Guenther wrote:
> >> fold_convert instead of fold (build_nop ())?
>
> > Then the if (type != TREE_TYPE (expr)) guard wouldn't be needed either.
> > Just expr = fold_convert (type, expr); unconditionally.
>
> It's not clear whether the suggestions above were meant as approval for
> the patch, so I'm refraining from checking it in with the change.
> Here's what I'm finishing testing in the 4.3 branch:
I'm afraid you need a C++ maintainer to ack it.
That said, I've already bootstrapped/regtested this exact patch yesterday
on {i386,x86_64,ppc,ppc64}-linux on the 4.3 branch.
Jakub