3 ms·
Compilers will routinely warn if they can detect UB at compile time. The problem is that except in a few trivial cases it is impossible to detect UB at compile
by gpderetta 5y ago
Compilers will routinely warn if they can detect UB at compile time.
The problem is that except in a few trivial cases it is impossible to detect UB at compile time. Even whole program static analysis can only catch a small subset.