https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103933
--- Comment #1 from Óscar Fuentes <gcc_bugzilla at axeitado dot com> --- 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.