Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I was reminded of this yesterday: I work on a research-oriented C/C++ compiler with several people who would certainly be considered C++ "experts". We came across a bizarre bug introduced by static destructor ordering. Even with the lines of code highlighted and a detailed paragraph explaining the error, it took us almost 30 minutes to figure out how the undefined behavior was causing the bug we saw.


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

Search: