[This answer](https://stackoverflow.com/a/4183735/962089) has an explicit statement for `i = arr[i++]` being UB in C++11. += on top of that won't help.
– chrisJul 26 '20 at 18:36
_Is the below code undefined behavior in c++11?_ Yes, it is undefined behavior in C++11. _My feeling it's not_ Your feeling has lead you astray.
– EljayJul 26 '20 at 18:43