Re:“What the Hardware Does” Is Not What Your Program Does: U...
by pizlonator on Sunday July 14, 2019 @08:42PM
(#20437241)
Sounds like a lot of excuses for what is really a compiler bug that found its way into the spec.
[ Parent
| on HN ]
Re:“What the Hardware Does” Is Not What Your Program Does: U...
by saagarjha on Monday July 15, 2019 @02:50AM
(#20438671)
Undefined behavior is not a compiler bug: it's a necessity that is required to have language constructs that give you a way of doing things for which there is no good way to define the behavior of. Your compiler optimizes your code every day by concluding that you're not doing anything illegal: it would have a rather miserable time if it couldn't make these assumptions.