Re: [PATCH] fix c++/78551 ICE in constexpr

2016-12-08 Thread Jason Merrill
On Wed, Dec 7, 2016 at 3:31 PM, Nathan Sidwell wrote: > This patch fixes 78551. The union was a red herring. The underlying > problem is that we first initialize a char array with a string constant, and > then zap a random element of that array. That zapping expects to see a > CONSTRUCTOR, not

[PATCH] fix c++/78551 ICE in constexpr

2016-12-07 Thread Nathan Sidwell
This patch fixes 78551. The union was a red herring. The underlying problem is that we first initialize a char array with a string constant, and then zap a random element of that array. That zapping expects to see a CONSTRUCTOR, not a STRING_CST. Fixed by expanding the STRING_CST into a CON