https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87275
--- Comment #3 from Shafik Yaghmour <yaghmour.shafik at gmail dot com> --- Note, I have filed similar bugs for clang: https://bugs.llvm.org/show_bug.cgi?id=38420 and MSVC: https://developercommunity.visualstudio.com/content/problem/304122/unsequenced-modifications-of-variable-within-a-con.html Also see https://twitter.com/StephanTLavavej/status/1024714057603899392