Re: [PATCH] c++: ICE with constexpr lambda [PR107280]

2023-03-10 Thread Jason Merrill via Gcc-patches
On 3/10/23 11:17, Marek Polacek wrote: We crash here since r10-3661, the store_init_value hunk in particular. Before, we called cp_fully_fold_init, so e.g. {.str=VIEW_CONVERT_EXPR("")} was folded into {.str=""} but now we don't fold and keep the VCE around, and it causes trouble in

[PATCH] c++: ICE with constexpr lambda [PR107280]

2023-03-10 Thread Marek Polacek via Gcc-patches
We crash here since r10-3661, the store_init_value hunk in particular. Before, we called cp_fully_fold_init, so e.g. {.str=VIEW_CONVERT_EXPR("")} was folded into {.str=""} but now we don't fold and keep the VCE around, and it causes trouble in cxx_eval_store_expression: in the