Hai letto il link che ho postato?
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum