|
|
|
|
|
by Sharlin
880 days ago
|
|
finite-math-only is a footgun as well as it allows the compiler assume that NaNs do not exist. Which means all `isnan()` calls are just reduced to `false` so it’s difficult to program defensively. And if a NaN in fact occurs it’s naturally a one-way ticket to UB land. |
|
I like to think that the flag should be renamed “-Ofuck-my-shit-up”.