Re: [C++ PATCH] Fix ICE with offsetof-like initializer (PR c++/88410)

2018-12-17 Thread Jason Merrill
On 12/9/18 6:05 AM, Jakub Jelinek wrote: Hi! The following testcase ICEs starting with my change to move offsetof-like expression handling from the parsing to cp_fold - if the base expression is not INTEGER_CST, but a constant VAR_DECL initialized with INTEGER_CST, then we don't fold it as offse

Patch ping (was Re: [C++ PATCH] Fix ICE with offsetof-like initializer (PR c++/88410))

2018-12-17 Thread Jakub Jelinek
Hi! On Sun, Dec 09, 2018 at 12:05:06PM +0100, Jakub Jelinek wrote: > The following testcase ICEs starting with my change to move offsetof-like > expression handling from the parsing to cp_fold - if the base expression > is not INTEGER_CST, but a constant VAR_DECL initialized with INTEGER_CST, > th

[C++ PATCH] Fix ICE with offsetof-like initializer (PR c++/88410)

2018-12-09 Thread Jakub Jelinek
Hi! The following testcase ICEs starting with my change to move offsetof-like expression handling from the parsing to cp_fold - if the base expression is not INTEGER_CST, but a constant VAR_DECL initialized with INTEGER_CST, then we don't fold it as offsetof-like expression and as we use recursive