I've read multiple [answers](https://stackoverflow.com/a/4558031/2468469) and [articles](https://software.intel.com/en-us/blogs/2007/11/30/volatile-almost-useless-for-multi-threaded-programming) stating why `volatile` doesn't make multithreaded C++ code safe.

I understand the reasoning, I think understand the possible dangers, my issue is I can't create or find any example code or mention of a situation where a program using it for synchronization produces actually visible wrong or unexpected behavior. I don't even need it to be reproducible (as current compilers even with optimizations seem to try producing safe code), just an example where it really happened.