https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103201
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 51777 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51777&action=edit gcc12-pr103201.patch I think this should fix it, but I currently don't have a way to test it. I was relying on libgomp/teams.c not being compiled for the !LIBGOMP_USE_PTHREAD targets...