https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102994
--- Comment #6 from Óscar Fuentes <gcc_bugzilla at axeitado dot com> --- (In reply to Jonathan Wakely from comment #5) > (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? Sigh. Sorry. It would be nice if the commit message mentioned the change to atomic_notify_* and its motivation, though. > > 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. So IIUC you are applying modifications to libstdc++ that deviate from the published standard expecting that the committee will accept those changes. As a user, this is troublesome, because right now I need to special-case gcc version >11.2 and maybe version <X.xx again in the future if the change is not accepted and is reverted.