Constraint violation as a shorthand for UB! (int)x = 42; // *(int *)&x = 42;https://twitter.com/RichFelker/status/847477582823997446 …
-
-
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
It's not o.0;?! Erm, I do that a lot in bare metal code to deref pointers XD (* (uint32_t *) 0xFEEDCAFE) = 0xDEADBEEF
-
There's no "lvalue cast" in your example. * operator takes a value expression and produces an lvalue.
-
What was the tweet you deleted? Idk if my code snippet is UB or not, tbh.
-
Sorry I mistakenly quoted your tweet rather than mine. That's why I deleted and reposted.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.