Re: [C++ PATCH] Fix constexpr ICE with poor man's offsetof (PR c++/86738)

2018-08-05 Thread Jason Merrill
OK On Sat, Aug 4, 2018 at 2:18 AM, Jakub Jelinek wrote: > Hi! > > Some time ago, I've moved the poor man's offsetof recognizing hack to > cp_fold. On the following testcase that means we don't fold it early during > parsing. Now, if we try to evaluate those inside of constexpr contexts > with !

[C++ PATCH] Fix constexpr ICE with poor man's offsetof (PR c++/86738)

2018-08-03 Thread Jakub Jelinek
Hi! Some time ago, I've moved the poor man's offsetof recognizing hack to cp_fold. On the following testcase that means we don't fold it early during parsing. Now, if we try to evaluate those inside of constexpr contexts with !ctx->quiet, it is diagnosed as invalid (but *non_constant_p is not se