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
[EMAIL PROTECTED]
(916) 791-8304

Reply via email to