Re: [PATCH] c++: ICE with template code in constexpr [PR104284]

2022-03-11 Thread Jason Merrill via Gcc-patches
On 3/10/22 18:04, Marek Polacek wrote: Since r9-6073 cxx_eval_store_expression preevaluates the value to be stored, and that revealed a crash where a template code (here, code=IMPLICIT_CONV_EXPR) leaks into cxx_eval*. It happens because we're performing build_vec_init while processing a template

Re: [PATCH] c++: ICE with template code in constexpr [PR104284]

2022-03-10 Thread Marek Polacek via Gcc-patches
On Thu, Mar 10, 2022 at 05:04:59PM -0500, Marek Polacek via Gcc-patches wrote: > Since r9-6073 cxx_eval_store_expression preevaluates the value to > be stored, and that revealed a crash where a template code (here, > code=IMPLICIT_CONV_EXPR) leaks into cxx_eval*. > > It happens because we're perfo

[PATCH] c++: ICE with template code in constexpr [PR104284]

2022-03-10 Thread Marek Polacek via Gcc-patches
Since r9-6073 cxx_eval_store_expression preevaluates the value to be stored, and that revealed a crash where a template code (here, code=IMPLICIT_CONV_EXPR) leaks into cxx_eval*. It happens because we're performing build_vec_init while processing a template, which calls get_temp_regvar which creat