News for hackers. Stuff that matters.
Re:GCC Undefined Behavior Sanitizer – Ubsan by mikeash on Thursday October 16, 2014 @08:25PM (#8468717)
For an easy example, consider the following function:

    int next(int x) { return x + 1; }
This invokes undefined behavior in the case where x = INT_MAX. Yet if this produced a compile-time diagnostic, it would be tremendously irritating and generally useless. Worse than useless, as it would swamp real diagnostics.

There are no comments on this comment yet.