<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/164435>164435</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[flang][OpenMP] trip count error compiling Fujitsu tests 0839_0000 0862_0001 0877_0024 0967_0000 0967_0004
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
eugeneepshteyn
</td>
</tr>
</table>
<pre>
Tests:
- https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0839/0839_0000.f90
- https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0862/0862_0001.f90
- https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0877/0877_0024.f90
- https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0967/0967_0000.f90
- https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0967/0967_0004.f90
Error:
```
flang -c 0839/0839_0000.f90 -fopenmp
error: Semantic errors in 0839/0839_0000.f90
./0839/0839_0000.f90:5:7: error: Trip count must be computable and invariant
!$omp do collapse(4)
^^
./0839/0839_0000.f90:16:7: error: Trip count must be computable and invariant
!$omp do collapse(4)
^^
```
Flang revision: `909f429b5e47aba3f67b4c1314974bd99c4483ef`
Is this an issue with flang or with the tests?
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0VEGPtCgQ_TXlhXQHEaQ5eHAyY7KHzW6yc5-Ali0TBQPYm_n3G23H2S-Zb25tSAoMVL3H45WO0V4dYgXiCcRzppc0-FDhckWHOMch4YfLjO8-qleMKUJRA61PZEhp3hasAdZcbRoWc279BKzpl3eb4gKsaf002xHDKWFMp7jYhMAaM3oDrJm0dcCaxocU9Dqjl0Lt4Y1SSs-9oo-rVbI9rLXyx9aScg9vlDL-0FqqlHt4_B3-WuuTF9D6JQQf7i8FSroPWpN-1O5KTi35Tmpy6v2MbpqB1rgnIP_gpF2yLdn-RGLdt2eB1uffvaCiFlDUcs12pH0NdiatX1wi0xITMUhW7kvSZkSiXUesu-lgtUsrbgIsB8b9NJPOk9aPo54jArtwYGrdAOJlHT-iyMuHw9i_A83_Lx9o3WzXH_Bmo_VuBQAlVVT1nCkjkEttdNGX0vA2L3KuJDedUi3nlwL7I8sfkaTBRqIdsTEuSP61adil9eG-SgOSdG8XDdA666qiU4XSGVa5LHMqLuVFZUOlpJSCtgVjOWLXyr5tda5zanohpelUZitGmcgpy3MuLlSdc-zNRShjOl4qqQrgFCdtx_M43qazD9dsA1XlJeeFyEZtcIyfzS1U666TWa4ROB1tTPHrXLJp3NrgRgXEM4inv2Z0f_4N4pmkL6k2-cjdK9ZdSXP3z50wOWQnR3Mhh_XJYcxjxrMljNUP9lwB7uE0B_-ObQLWbCwjsGYneqvYfwEAAP__qma-Gw">