Hi,

any feedback about this - apparently rather simple - issue?

On 03/11/2017 18:33, Paolo Carlini wrote:
Hi,

this ICE on valid (given GNU's designated initializers) is rather simple to analyze: for the testcase, the gcc_assert in process_init_constructor_array triggers because at that time INDEX1 is still a CONST_DECL, not an INTEGER_CST. As regards fixing the problem, I immediately noticed earlier today that fold_non_dependent_expr is definitely able to fold the CONST_DECL to the expected zero INTEGER_CST - and that also passes testing - but I'm not sure that in the big picture folding at that time is correct. Thanks in advance for any feedback!

    https://gcc.gnu.org/ml/gcc-patches/2017-11/msg00242.html

Thanks!
Paolo


Reply via email to