https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120432
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> --- Please don't waste time on the volatile question. What does it mean to lookup a volatile value that could change at any moment? What is the library even supposed to do with a volatile int& there, read it again for every comparison? Copy it once and then use that value?