<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/225225>225225</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[FLANG][OpenMP] flang fails to produce appropriate error message for array section in depend clause
</td>
</tr>
<tr>
<th>Labels</th>
<td>
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
laoshd
</td>
</tr>
</table>
<pre>
According to Restrictions of OpenMP 5.0 2.17.11 depend Clause:
```
• Array sections cannot be specified in depend clauses with the depobj dependence type.
• List items used in depend clauses with the depobj dependence type must be depend objects in the initialized state.
```
flang should show a better error message than "not yet implemented: DEPOBJ dependence-type" for the this simple test:
```
% cat tst.f90
integer :: x(10)
!$omp task depend(depobj: x(:))
!$omp end task
end
% flang -fopenmp -fopenmp-version=50 tst.f90
warning: OpenMP support for version 50 in flang is still incomplete [-Wexperimental-option]
error: loc("/home/users/laos/llvm-flang/test/CPE-18454/tst.f90":2:7): /home/users/laos/llvm-flang/src/llvm-project_pe31/flang/lib/Lower/OpenMP/ClauseProcessor.cpp:200: not yet implemented: DEPOBJ dependence-type
LLVM ERROR: aborting
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJycVEFv6zYM_jXKhYgh03ZiH3xwX-oBQ95a9LAdB1lmYr3ZliDJ7et-_UDH3dpuh21AAgUKye_jx09UIZjrTFSL4k4Up51a4mB9PSobhn7X2f61brS2vjfzFaKFJwrRGx2NnQPYCzw4mr8-QpFIwCQ9JmkKPTmae_gyqiWQyBohG3GQ20c24h5FKUWD0HivXiHQVk2rebYROoLgSJuLoR7M_FZOr-UCvJg4QByI7233bfubZk0QXx0lHxDOJkQwkaYAS_g_5WBawkppS7PdN9IxcCFOMrOJRo3md-ohRBVv8O-avYxqvkIY7DL2fLyAgo5iJA_kvfUwUQjqShAHNYNAZAVeKYKZ3EgTzZF6kTVwun98uPvxHbs9sxOIcLF-pRIHEyCsaRApxH8QHgvQKkIMMblUfGPmSFfywLFZA98FlqkUWK3BqcDcTg6iCr9twALLm0xv0ZyI1ecMFoqzhGw4STYb-E2M_cU6mif354_9M_lg7CyyUyHfsXtRfjbzlbE2l4XFOevj2vOWBIXkYdxKswLRjCOYWVtWIhKI4m7_C3135A3Lqca9dew3UZyYHw-BEUaruR9Ege1gJxLYLoF8ENjyW-BjfJ72K47AdlUY2y-P9_u0zIucrzbiiCJr-HtkXbIG_l3F4PXblfOWXfaroywV2L5FjKYT2J7tC3mB7U0S5rA6-dFbTSFYn2jnmICUjP3f7CSb8_nnr3D_9PTwxGGqsz7yCD4aadfXWV9lldpRnR4rKTN5OGa7oUaJsqqwLLGgssyOsjjkh-yiS40H1WG_MxxykBWmiHmeZUl1yPO8zLTOi6pPUxS5pEmZMWEhEuuvOxPCQjVigVjsRtXRGNZdhbjpgry2fL0q1y3XIHI5mhDDXyWiieO64Npz89MPPPjibpOvOG3WuSgzBl5wztt-0QTKOW-dNyrSp6fK7lPvV9ff1spu8WM9xOjC-kBage3VxGHpEm2nbcqfhi2wXTtlX2zNPtf4RwAAAP__-KHNkQ">