<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/151990>151990</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Flang] [OpenMP] crashes on an array in the depend clause of task directive
</td>
</tr>
<tr>
<th>Labels</th>
<td>
crash,
flang:openmp
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
k-arrows
</td>
</tr>
</table>
<pre>
Reproducer:
https://godbolt.org/z/8nn9z7Ez8
```f90
subroutine foo(x)
integer :: x(3, *)
!$omp task depend(in:x(:,5))
!$omp end task
!$omp task depend(in:x(5,:))
!$omp end task
end
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMks9unDAQxp9muFhZmQGz5uADyZZb1apvYGAAN14b2Wab7NNXJiu1yqGqZMl_NN9P830eHaNZHJEC8QziUug9rT6o1ycdgv8Vi8FP7-oHbcFP-0gBqg54t6a0xXzEHrBf_DR4m04-LID9HbCXzrX385e7BN5Bwz_W3HLgXdyH4PdkHLHZe0D5BtgC74xLtFBgmVp17A1QVoAvDLD7KAAsAWt_3VjS8ZVNtJGbAKVxUHW5_OjnReTqTwJy0yH6H4oAfDlI_6JkzV_OiklVU1u1uiBVnkVdIVZNW6zqrM-6mvgghlrzpuZNjSirpm1KOTeT1IVRyFFwyetS1A2XJ9FKoZuRJPG6Lucz1Jyu2tiTtbdrTrgwMe6kSlG2LS-sHsjG4-8Qx6DjCojZAeJstVug6vxG7rrlZ3Epgsqcp2FfItTcmpjiH3IyyR5z0B9ScWEgnr9t5L5-z5cDT5F5x7RjOgT9zoxjaaVHjGy0eo_E_PwI1wQak7lRsQerPs2MSes-nEZ_BexzB4_taQv-J40JsD-MRsD-4fWm8HcAAAD__yWKzBQ">