<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/143764>143764</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[flang][OpenMP] Failures with Fujitsu 0521_0030 and 0686_0024 (OMP PARALLEL)
</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>
Test files:
- https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0521/0521_0030.f90
- https://github.com/fujitsu/compiler-test-suite/blob/main/Fortran/0686/0686_0024.f90
Sorry, I attempted to bisect this, but ran into LLVM build issues during the bisection that I couldn't get past. Perhaps bisect landed on a patch that just happened to have LLVM build issue, but I wasn't able to get past it.
The failures started around 4-Jun-2025 and both tests started failing with the same build. This LLVM commit is known to work: 54d836a0807c8b1fe11024e3886141dfcbab3880
The first test outputs `err` line, which should not be in the successful output:
```
$ flang -fopenmp 0521_0030.f90 && ./a.out
flang-21: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
err var i1= 1
pass
```
The second test currently hangs:
```
$ flang -fopenmp 0686_0024.f90 && ./a.out
flang-21: warning: OpenMP support in flang is still experimental [-Wexperimental-option]
^C
```
At some point I saw it failing as follows:
```
10011 10011 10011 0
10011 10011 10011 0
pass
```
(Only `pass` should be printed upon successful output.)
Compiler version:
```
$ flang --version
flang version 21.0.0git (https://github.com/eugeneepshteyn/llvm-project.git ddef9ce8dad611c2fef172f3b08c5c98235a3b41)
Target: x86_64-unknown-linux-gnu
Thread model: posix
...
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJzEVc1u4zgTfBr60pBAUj-WDj54JiNgPiRI8G2wewwoqSUxQ5ECf-Lk7ReU7EkyGQR7WSxgWDLJdld1VxeFc3LUiAdSfCHF1U4EPxl7wDCiRlzc5PFF71rTvxzu0XkYpEJHsiOhxwQm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