What is wrong with this code?

It looks like it’s a bug. (or at least not expected or documented…)