https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117276
--- Comment #1 from Oliver Schönrock <oschonrock at gmail dot com> --- Created attachment 59419 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59419&action=edit patch which solves the problem this patch applies cleanly to libstdc++ 13.2 and 14.2 and also to head I believe. It solves the problem. The code change is from here: https://github.com/oneapi-src/oneDPL/pull/1589/files By one of the people on the TBB / oneDPL team. it cannot be applied to TBB ( I did ask there) because the bug is in the "glue/interface" code between libstdc++ and TBB and managed by libstdc++