Hacker News new | past | comments | ask | show | jobs | submit login

Interestingly, g++ gives out a warning (correctly) when compiled with -O2, but not by default (-O0):

    warning: dereferencing type-punned pointer will break strict-aliasing rules  [-Wstrict-aliasing]
So, you're right indeed.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: