News for hackers. Stuff that matters.
Re:Falsehoods programmers believe about undefined behavior by tempodox on Monday November 28, 2022 @10:05AM (#33774485)
Code that represents UB doesn't have to be executed for the compiler to react to it.
Re:Falsehoods programmers believe about undefined behavior by AstralStorm on Monday November 28, 2022 @10:20AM (#33774674)
More specifically, the linker, not the compiler.

The compiler has to respect DR 106. The linker, however, is allowed to write garbage into code.

Re:Falsehoods programmers believe about undefined behavior by gpderetta on Monday November 28, 2022 @10:27AM (#33774759)
the standard does not distinguish the linker from the compiler.