================

----------------
AaronBallman wrote:

Should this be diagnosed?

C2y 6.5.17.1p3: ... The side effect of updating the stored value of the left 
operand is sequenced after the value computations of the left and right 
operands. The evaluations of the operands are unsequenced.

This might be outside the scope of the PR, but it also applies to things like 
`v = v;` regardless of whether `v` is `volatile` or not.

https://github.com/llvm/llvm-project/pull/180955
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to