http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60258
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Sure, my comment was about this stylistic issue, not about the real bug (if any, haven't tried it). Note your testcase isn't self-contained, you probably need #include <atomic>.