Re:Int a = 5; a = a++ + ++a; a =? (2011)
by marcosdumay on Thursday May 14, 2026 @03:21PM
(#48139975)
Well, aliased updates are undefined behavior already.
Re:Int a = 5; a = a++ + ++a; a =? (2011)
by not_a_bijection on Thursday May 14, 2026 @04:53PM
(#48141089)
Not in C, unless at least one of the pointers were marked `restrict`.
That would be nice, but don't forget the more general case of pointers and aliasing:
The compiler cannot statically catch every possible instance of a statement where a variable is updated more than once.