https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102994
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Óscar Fuentes from comment #4) > The fix is wrong. It changes atomic_notify_one and atomic_notify_all instead > of atomic<>::wait. It changed both. > So right now atomic<>::wait remains unfixed Are you sure? > and atomic_notify_(one|all) arg > is wrongly marked as const. This will be the subject of a library issue, potentially fixing the standard. The notify functions should be const too.