Re: [PATCH] c++; Fix constexpr evaluation of SPACESHIP_EXPR [PR96497]

2020-08-10 Thread Jason Merrill via Gcc-patches
On 8/8/20 5:23 AM, Jakub Jelinek wrote: Hi! The following valid testcase is rejected, because cxx_eval_binary_expression is called on the SPACESHIP_EXPR with lval = true, as the address of the spaceship needs to be passed to a method call. After recursing on the operands and calling genericize_s

[PATCH] c++; Fix constexpr evaluation of SPACESHIP_EXPR [PR96497]

2020-08-08 Thread Jakub Jelinek via Gcc-patches
Hi! The following valid testcase is rejected, because cxx_eval_binary_expression is called on the SPACESHIP_EXPR with lval = true, as the address of the spaceship needs to be passed to a method call. After recursing on the operands and calling genericize_spaceship which turns it into a TARGET_EXPR