[Bug c++/60272] atomic<>::compare_exchange_weak has spurious store and can cause race conditions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 --- Comment #10 from Max Wittal --- Sorry, I'm pretty sure now that there is some hard to find bug in my code, like the ABA problem. Please disregard my comment above.
[Bug c++/60272] atomic<>::compare_exchange_weak has spurious store and can cause race conditions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 --- Comment #9 from Max Wittal --- I still get this bug in gcc version 5.2.1 20151010 on x86_64-linux-gnu. Please see attached code.
[Bug c++/60272] atomic<>::compare_exchange_weak has spurious store and can cause race conditions
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60272 Max Wittal changed: What|Removed |Added CC||max.wittal at mwittal dot de --- Comment #8 from Max Wittal --- Created attachment 38642 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38642=edit Example code that still triggers this bug.