4 ms·
Code that represents UB doesn't have to be executed for the compiler to react to it.
by tempodox 4y ago
Code that represents UB doesn't have to be executed for the compiler to react to it.
- AstralStorm 4y agoMore specifically, the linker, not the compiler. The compiler has to respect DR 106. The linker, however, is allowed to write garbage into code.
- gpderetta 4y agothe standard does not distinguish the linker from the compiler.