https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103933
--- Comment #4 from Óscar Fuentes <gcc_bugzilla at axeitado dot com> --- (In reply to Jonathan Wakely from comment #3) > (In reply to Óscar Fuentes from comment #1) > > Also, the template functions atomic_notify_one and atomic_notify_all take a > > const argument, when it should be non-const. > > > > The `volatile' arg overload is missing too. > > Because there is no atomic_flag::notify_one() or atomic_flag::notify_all() > in libstdc++. The volatile overloads are not useful, and are deprecated, and > are not present in libstdc++. Ok, thanks, but atomic<>::notify_(one|all) exist and show the problem, which was introduced as a "fix" for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102994
