@Anders_G
IntArrayRef dim_arr = {-2, 1}; will most likely failed. Since {-2, 1} is temporary, ArrayRef won’t copy the value, it just reference the value. So the behavior of dim_arr is undefined if you do this. You might be able to print out the correct value, but the address is already released, so anything can happen.