https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88322 Bug 88322 depends on bug 118494, which changed state.
Bug 118494 Summary: std::counting_semaphore<PTRDIFF_MAX> should work https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118494 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED