On Tue, 15 Feb 2005 16:29:09 -0500, Andrew Pinski
<[EMAIL PROTECTED]> wrote:
> 
> On Feb 15, 2005, at 4:26 PM, Richard Guenther wrote:
> 
> > Ok, I guess the following excerpts from cp/typechk.c show a
> > discrepancy:
> 
> Can you at least reduce the C++ code and also provide the patch which
> you are working on currently, this will help us understand the problem
> better?

Yes, I'm working at fixing PR19807, i.e. folding of &a[] + c and &a + c,
current patch (and related fixes) attached.  The failure above occours
during the build of libstdc++ - the exact file/condition (I think this was
just a regular build, not a bootstrap, and with CFLAGS=-g for better
debugging, because a previous bootstrap failure was not debuggable)
is currently unavailable, but I can dig that out tomorrow.

Fact is, the tree-checker in gimplify.c chokes on the tree generated
by the frontend and the patch fixes that.  I made the fix by
inspection of the code and think the bug is obvious, but of course I'm
not very familiar with the C++ frontend.

Hope this clarifies things a bit - I'll collect the testcases for the
latent bugs I'm uncovering for inclusion once I submit the triggering
patch.

Richard.

Reply via email to