https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98738
--- Comment #15 from Kwok Yeung ---
(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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98738
--- Comment #9 from Kwok Yeung ---
I have a patch for this now. In addition to posting other semaphores in
omp_fulfill_event, GOMP_taskwait also needs to be made aware of detached tasks.
Also, task_running_count should not include completed tasks
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98738
--- Comment #6 from Kwok Yeung ---
It seems to be the '#pragma omp taskwait' inside the parallel region that is
causing the intermittent hang - if you add it to task-detach-5.c, the hang also
happens there (i.e. the target construct is not the pr