Re:C for All
by roywiggins on Friday March 23, 2018 @10:56PM
(#16664528)
Compilers deciding to elide code paths that contain undefined behavior is weird, especially when it chooses to silently elide your checks for division by zero or overflow. It's not weird that actually dividing by zero can do anything; it's weird that by having a possible division by zero can allow the compiler to decide that (divisor==0) is false and ignore it.
[ Parent
| on HN ]
There are no comments on this comment yet.