<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/61281>61281</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[flang][OpenACC] stop statement in one construct inside one acc region
</td>
</tr>
<tr>
<th>Labels</th>
<td>
flang:ir,
flang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
PeixinQiao
</td>
</tr>
</table>
<pre>
```
subroutine test_stop_in_region3()
integer :: x
!$acc parallel
x = 3
if (x > 1) stop x
!$acc end parallel
end
```
```
$ bbc -emit-fir -fopenacc test.f90
error: loc("/home/qpx/compilers/llvm-community/example/fix-exit-region/acc/test.f90":4:5): operation with block successors must terminate its parent block
FATAL: verification of lowering to FIR failed
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxskkGPozgQhX-NuZQSOTYkcOBAdxZppZV2dzT3ljEFqRljM7bppv_9yJDMSNFIHOBRvOI9fyoEGi1izYoXVlwztcSb8_V_SCvZ_0m5rHP9Z83O_H7xK-NNWDrvlkgWIWKIbyG6-Y3sm8eRnJVMlExU-ygA2YgjemCyYbKB9aEzcWIiV1rDrLwyBs3jDcAKTF5B3gUagIkyaX_BiYkK0r4_GaHtn8zQ9vvNU4LnR5FD12k44ETxMJCHw-BmtMk0JTwOFYe7o_fOpyDG6S2oYKK9uQmZaH_MKxOtdtNMBn1gojXmfTpoN02LpfjJRIurmmaThgdaD7hSPOytMdEqrZloH_uSs2xyJpsitSkbcDN6FclZ-KB4g844_R3CojWG4HyAaQkRIvqJrIoIFENqA23cR_f_b5uvzT_J7R09DaR3QzeAcR_oyY4QHbR_f4FBkcHn9rK-ln0lK5VhfTpfSlmIssyzW92Xl-qcV73kXa5E0V94fx7yIj-X5wEvRZlRLbiQXPKKV7zk-bEq9WU45R32-jTw8sJyjpMic0ydHZ0fMwphwfp8EuUpM6pDEzZMhRiMsiOTDfmt_tdfkhAJYl9vtXfLGFjODYUYfptGimbDff-iuLLi5d8ZbfP6yorrjlaIKuKUiiMLziJoZ0P0i05CoB43McGxn122eFPfYpxDgly0TLQjxdvSHbWb7hQ8YJi9-4Y6MtFu8RIkW8KfAQAA__8XRhV9">