Re: [PATCH] c++: wrong error with constexpr COMPOUND_EXPR [PR105321]

2022-04-21 Thread Jason Merrill via Gcc-patches
On 4/20/22 18:40, Marek Polacek wrote: Here we issue a bogus error for the first assert in the test. Therein we have = (void) (VIEW_CONVERT_EXPR(yes) || handle_error ());, VIEW_CONVERT_EXPR(value); which has a COMPOUND_EXPR, so we get to cxx_eval_constant_expression . The problem here is th

[PATCH] c++: wrong error with constexpr COMPOUND_EXPR [PR105321]

2022-04-20 Thread Marek Polacek via Gcc-patches
Here we issue a bogus error for the first assert in the test. Therein we have = (void) (VIEW_CONVERT_EXPR(yes) || handle_error ());, VIEW_CONVERT_EXPR(value); which has a COMPOUND_EXPR, so we get to cxx_eval_constant_expression . The problem here is that we call 7044 /* Check tha