logoalt Hacker News

masklinn • today at 12:42 PM • 1 reply • view on HN

Afaik loop {} has never been UB, however because llvm started as a c++ compiled where it is, this has been causing miscompilations in rust and C for… nearly two decades (llvm issue 965).


Replies

cowlevel • today at 12:51 PM

Since the Rust language is defined by the Rust compiler and has no other specification, if it's UB in the compiler then it's UB in the language.

➕ show 2 replies