https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82707
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- If the problem is missing unsharing, then I think many other constructs have the same problem and need their clauses to be unshared too. So, in addition to TARGET also SINGLE and TEAMS.