http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58982
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- And this, which is more obviously wrong: std::atomic<int> a[1]; std::atomic<int> b[1]; std::copy(a,a+1, b);
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58982
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- And this, which is more obviously wrong: std::atomic<int> a[1]; std::atomic<int> b[1]; std::copy(a,a+1, b);