https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106464 Bug 106464 depends on bug 106448, which changed state.
Bug 106448 Summary: [OpenMP] atomic compare – g++ wrongly accepts parenthesized condition https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106448 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED