Re: C++ PATCH for c++/67104 (wrong handling of array and constexpr)

2015-08-17 Thread Jason Merrill
On 08/12/2015 01:32 PM, Jason Merrill wrote: cxx_eval_array_reference was assuming that the CONSTRUCTOR for an array has one entry per array element, in order. But cxx_eval_store_expression doesn't try to create such a CONSTRUCTOR, and other places use RANGE_EXPRs, so we need to be prepared to h

C++ PATCH for c++/67104 (wrong handling of array and constexpr)

2015-08-12 Thread Jason Merrill
cxx_eval_array_reference was assuming that the CONSTRUCTOR for an array has one entry per array element, in order. But cxx_eval_store_expression doesn't try to create such a CONSTRUCTOR, and other places use RANGE_EXPRs, so we need to be prepared to handle these cases. Tested x86_64-pc-linux