Re: [PATCH] c++: ICE with constexpr dtor on ARM [PR105529]

2022-05-09 Thread Jason Merrill via Gcc-patches
On 5/9/22 18:41, Marek Polacek wrote: When compiling this test on ARM with -O, we ICE in cxx_eval_store_expression while evaluating a CALL_EXPR allocator::~allocator (&D.4529). Its body has this store: = this The RHS is evaluated into &D.4529 of type allocator *. The object, , is of type

[PATCH] c++: ICE with constexpr dtor on ARM [PR105529]

2022-05-09 Thread Marek Polacek via Gcc-patches
When compiling this test on ARM with -O, we ICE in cxx_eval_store_expression while evaluating a CALL_EXPR allocator::~allocator (&D.4529). Its body has this store: = this The RHS is evaluated into &D.4529 of type allocator *. The object, , is of type void *. Their types don't match so we go