https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67458
Yichao Yu <yyc1992 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yyc1992 at gmail dot com --- Comment #1 from Yichao Yu <yyc1992 at gmail dot com> --- I've just hit this when I was expecting the stores to the non-atomic variables to be optimized to before the atomic store. I have a slightly more self-contained repro that can trigger an assertion on x64 when running repeatedly https://github.com/yuyichao/explore/commit/0b70ee0b14c5d20f0e98d8e0d0ebc5032bd12892 (I was going to report a bug with the code and discovered this report and I realized that I happened to pick exactly the same variable names and values........)