Slides on "Dangerous Optimizations and the Loss of Causality" in C and C++. The very first example. This does not inspire confidence AT ALL.pic.twitter.com/aRP5wprVo4
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
Yeah, this transform can happen if "cond" is a bool: https://godbolt.org/g/HNV23X (in this case "undefined behaviour" would be the bool being read from uninitialized memory, and therefore not being 0 or 1)
If you're reading uninitialized data, a "bool" that's actually 3 is the least of your worries.
I think it's pretty representative (although of course not exhaustive) of the sort of effects you'd see from uninitialized-bool UB, especially if the compiler can't see that it's uninitialized (due to external boundaries).
My favourite bug from uninitialized bools was `window_flags |= is_visible * WS_VISIBLE;` As for why I'd write such a thing in the first place, ternaries are ugly :P
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.