[flang-commits] [flang] [flang][OpenMP] Fix the privatization of common blocks (PR #200446)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Fri Jun 12 05:21:06 PDT 2026


luporl wrote:

> @luporl , it used to be that before this change compiling the code...
> 
> ```
>   subroutine s
>     integer :: x
>     common /c/ x
>     !$omp declare target link(/c/, /c/)
>   end
> ```
> 
> ...would result in `error: 'c' appears in more than one data-sharing clause on the same OpenMP directive`. This error no longer happens. Is this intentional?

@eugeneepshteyn, no, it wasn't intentional, but https://github.com/llvm/llvm-project/pull/203364 brings this error back.

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


More information about the flang-commits mailing list