Re: [C++ PATCH] Fix constexpr VEC_COND_EXPR handling (PR c++/82781)

2017-11-20 Thread Nathan Sidwell
On 11/20/2017 02:42 AM, Jakub Jelinek wrote: Hi! VEC_COND_EXPR is handled in constexpr code like COND_EXPR, but that is wrong. VEC_COND_EXPR is more like an arbitrary arithmetics ternary operation, we need to compute all 3 arguments and based on the elements of the first argument pick up elemen

[C++ PATCH] Fix constexpr VEC_COND_EXPR handling (PR c++/82781)

2017-11-19 Thread Jakub Jelinek
Hi! VEC_COND_EXPR is handled in constexpr code like COND_EXPR, but that is wrong. VEC_COND_EXPR is more like an arbitrary arithmetics ternary operation, we need to compute all 3 arguments and based on the elements of the first argument pick up elements of 2nd and 3rd arguments. The COND_EXPR hand