3 ms·
A single compiler can even seem inconsistent. A conforming compiler is allowed to completely remove undefined behavior like this: if((n << 64) == 0) {
by Someone 3y ago
A single compiler can even seem inconsistent.
A conforming compiler is allowed to completely remove undefined behavior like this:
if((n << 64) == 0) {
println("Hi!\n");
}
if((n << 64) != 0) {
println("Hi!\n");
}
If it were implementation-defined, it would have to compile it to the equivalent of
println("Hi!\n");
- deleted 3y ago[deleted]