https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98738
--- Comment #15 from Kwok Yeung <kcy at codesourcery dot com> --- (In reply to Thomas Schwinge from comment #13) > Kwok, it seems -- at least in my testing -- that your latest commit > d656bfda2d8316627d0bbb18b10954e6aaf3c88c "openmp: Fix intermittent hanging > of task-detach-6 libgomp tests [PR98738]" has broken things with nvptx > offloading enabled: because of hanging > 'libgomp.c/../libgomp.c-c++-common/task-detach-6.c' I noted this hang at: https://gcc.gnu.org/pipermail/gcc-patches/2021-February/565740.html It does not seem to be an issue with the detach support though, as this trivial testcase will also hang. int main (void) { #pragma omp target #pragma omp parallel #pragma omp task ; } I have confirmed that this behaviour occurs even before my original patch for implementing the detach clause, and it does not occur with GCN offloading.