http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52558
--- Comment #23 from Aldy Hernandez <aldyh at gcc dot gnu.org> 2012-07-02 18:25:42 UTC --- BTW, for anyone still stuck on this, you need to use the following when compiling the testcase: --param allow-store-data-races=0 Eventually, this will be the default for C++1x, or the C++ memory model.