Index: openmp/runtime/src/kmp_tasking.cpp =================================================================== --- openmp/runtime/src/kmp_tasking.cpp +++ openmp/runtime/src/kmp_tasking.cpp @@ -1328,7 +1328,7 @@ taskdata->td_flags.task_serial = (parent_task->td_flags.final || taskdata->td_flags.team_serial || - taskdata->td_flags.tasking_ser); + taskdata->td_flags.tasking_ser || flags->task_serial); taskdata->td_flags.started = 0; taskdata->td_flags.executing = 0;