ACM SIGPLAN · youtube · en
1C++11 memory model prohibits compilers from introducing self-assignments because they violate sequential consistency in data race-free programs.
“compilers are not allowed to introduce assignments of a variable to itself uh because that's actually observable and violates the sequential consistency for data race free program rules”