PR 20505

Mark Mitchell mark@codesourcery.com
Thu Mar 24 15:25:00 GMT 2005


Nathan Sidwell wrote:
> Bug 20505 is an ICE with -ggdb2.  We have the following member
> definition,
>   const int b::d = ((int)(&((b*)1)->c) - 1);
> whose initializer used to be folded during construction to an INT_CST, but
> now it doesn't -- fold cannot fold the complete expression.  As
> the PR says, this was changed by,

That's an optimization regression, of course...

> My inclination is to simply add an additional check in the dwarf outputter,
> verifying that the initializer is indeed an INT_CST.

Seems reasonable to me, but Jason and Jim know the DWARF code better.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@codesourcery.com
(916) 791-8304



More information about the Gcc mailing list