Re: C++ PATCH for c++/69995 (wrong value with C++14 constexpr)

2016-03-01 Thread Jason Merrill
On 02/29/2016 09:25 AM, Jason Merrill wrote: The bug here was that we were sharing the CONSTRUCTOR between the value of 'a' and the elements of 'result', so changing 'a' also changed the value of result[0]. Oops. And there were a few other places with the same problem. Tested x86_64-pc-linux-

C++ PATCH for c++/69995 (wrong value with C++14 constexpr)

2016-02-29 Thread Jason Merrill
The bug here was that we were sharing the CONSTRUCTOR between the value of 'a' and the elements of 'result', so changing 'a' also changed the value of result[0]. Oops. Tested x86_64-pc-linux-gnu, applying to trunk and 5. commit 20c203ae124fd4fb2975eb3fb0c50ce7ade35e69 Author: Jason Merrill Da