https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62313
--- Comment #2 from Dmitry Vyukov <dvyukov at google dot com> --- The additional thread only touches iter, and the main thread does not touch iter nor invalidate it. So there is nothing to protect here. The program does not contain data races per se.