Re:GCC Undefined Behavior Sanitizer – Ubsan
by mikeash on Thursday October 16, 2014 @08:25PM
(#8468717)
For an easy example, consider the following function:
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.
[ Parent
| on HN ]
There are no comments on this comment yet.