Is storing the same value to an object twice "modifying" it once or twice? :-)
It seems likely the motivation of the UB was ambiguity of which store happens first, which doesn't arise if both are the same value.
-
-
I agree with that motivation. but then there are modern compilers...
-
It's easy to see how the ambiguity could lead to real UB (not just unspecified order) with modern compilers when the values differ.
-
For example one code path might assume the first value was stored and the other assume the second, leading to ballooning contradictions.
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.