http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57507
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- Would supporting std::shared_ptr solve the problem? The problem seems to be due to not understanding that the atomic ops used by shared_ptr are atomic.
