[flang-commits] [flang] [Flang][OpenMP] Fixed semantic error when list item with a private da… (PR #109775)

Kaviya Rajendiran via flang-commits flang-commits at lists.llvm.org
Tue Oct 8 23:27:09 PDT 2024


kaviya2510 wrote:

> Yeah, I'm pretty sure this isn't legal. The ALLOCATE clause must be on the same directive that has the privatizing clause. It specifies how to allocate memory for the private copy, so adding it in a nested construct is questionable.

Hi @kparzysz 
Yeah, I agree with your point. But taskgroup directive is not allowing data_sharing_clauses in it.
Kindly refer the below comment https://github.com/llvm/llvm-project/pull/109775#issuecomment-2401416952 for more details.

https://github.com/llvm/llvm-project/pull/109775


More information about the flang-commits mailing list