Re: C++ PATCH for c++/89119 - ICE with value-initialization in template

2019-01-30 Thread Jason Merrill
On 1/30/19 12:43 PM, Marek Polacek wrote: While looking at the other PR I came across this ICE. We're substituting {.a={[0 ... 3]=0}} which contains a RANGE_EXPR that build_value_init_noctor created, but none of the tsubst_* functions handle it. As discussed in the PR, a RANGE_EXPR will al

C++ PATCH for c++/89119 - ICE with value-initialization in template

2019-01-30 Thread Marek Polacek
While looking at the other PR I came across this ICE. We're substituting {.a={[0 ... 3]=0}} which contains a RANGE_EXPR that build_value_init_noctor created, but none of the tsubst_* functions handle it. As discussed in the PR, a RANGE_EXPR will always be created with constant operands, so th