That's not what was happening in this example though. It would be UB even if it was a POD.