News for hackers. Stuff that matters.
Re:Clang vs. Clang by tsimionescu on Sunday August 04, 2024 @04:05AM (#41151875)
That's the core of the complaints about how modern C and C++ compilers use UB.
Re:Clang vs. Clang by uecker on Sunday August 04, 2024 @04:29AM (#41151973)
The focus was certainly much more on optimization instead of having good warnings (although any commercial products focus on that). I would not blame compiler vendors exclusively, certainly paying customer also prioritized this.

This is shifting though, e.g. GCC now has -fanalyzer. I does not detect this specific coding error though, but for example issues such as dereferencing a pointer before checking for null.