News for hackers. Stuff that matters.
Re:Int a = 5; a = a++ + ++a; a =? (2011) by masklinn on Friday May 15, 2026 @01:48AM (#48144999)
Because this specific UB is static (not usually the case) both gcc and clang will flag it if Wsequence-point is enabled (and it is part of Wall) (technically the clang warning is Wunsequenced but aliased to the GCC version).

edit: apparently Wunsequenced is enabled by default so clang should warn you out of the box.

There are no comments on this comment yet.