3 ms·
That's the core of the complaints about how modern C and C++ compilers use UB.
by tsimionescu 2y ago
That's the core of the complaints about how modern C and C++ compilers use UB.
- uecker 2y agoThe 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.