Provato con gcc 4.3.3 su Linux 2.6 x86_64 e non ho problemi.
Amaro C++, il gusto pieno dell'undefined behavior.
Regole del Forum