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 (). Its body has this store: = this The RHS is evaluated into of type allocator *. The object, , is of type void *.

[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 (). Its body has this store: = this The RHS is evaluated into of type allocator *. The object, , is of type void *. Their types don't match so we go into the new