Già, è quello che mi chiedevo anch'io...
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum