3 ms·
Why did nobody come up with patches for the insane gcc and clang ub optimizations yet? Make it a cmdline flag, issue a warning or such? Anyone seen such patch
by rurban 6y ago
Why did nobody come up with patches for the insane gcc and clang ub optimizations yet? Make it a cmdline flag, issue a warning or such? Anyone seen such patches?
gcc at least issues a default warning on this compiler insanity.
- jart 6y agoBecause unless you turn off the optimizer entirely it's just a whack-a-mole game as these compilers evolve. There's still a lot of people out there using versions as old as 4.7.4, 4.2.1, and even 3.x series GCC. Someday someone's going to build an x-ray machine and then there'll be a dumb ways to die video that galvanizes those people into forking it.