3 ms·
https://github.com/rust-lang/rust/issues/28728 https://github.com/rust-lang/rust/issues/28728
by gavinhoward 1y ago
https://github.com/rust-lang/rust/issues/28728 https://github.com/rust-lang/rust/issues/28728
- muldvarp 1y agoI don't see any surprised compiler authors in that thread. The reporter immediately suggests the correct underlying reason for the bug and another compiler author even says that they wondered how long it would take for someone to notice this. Even if you read any surprise into their messages they wouldn't be surprised that C does something completely unreasonable, they would be surprised that LLVM does something unreasonable (by default).
- tialaramex 1y agoWait, that's not even linked in your post AFAICT. It's also about an LLVM bug and not in fact exploiting UB. "LLVM shouldn't miscompile programs" is uncontroversial, but claiming that these miscompilations are somehow "Exploiting Undefined Behaviour" is either incompetent or an attempt to sell your position as something it isn't.