<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/139425>139425</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [OpenMP] Assertion `NextVal != ArgumentEnd && "Value for integer select modifier was" " larger than the number of options in the diagnostic string!"' failed.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </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/oxKMY78Tc
```cpp
void f(){
#pragma omp atomic
++(int){0};
}
```
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxckk-L3DAMxT-NchE7OMr_Qw5ZprmUbUspCz06sZK4dexgOzPbfvqSzEJLQWCD3pP9fkiGoGfL3ELxDMU1kXtcnG9_Pknv3T0kg1O_2q-8eaf2kT1kHYhuiXELx5V6oH52anAmXpyfgfrfQL17-_jyvaq_jSA6KMWjxm0D0d2cVjgB1UANVM-HgLLNy3mV6NYNZXSrPn30fFatbXxoBVRXyE5Ldf13cqLaTDVZIxNu0yovG8qrKk2WliSNQznyIMqMeaqLuuZSFCIdcp6mQSW6JUGFKNJUiIKK9JJlU5NzWWV1XhfUMOSCV6nNxZjbeiRMdAg7t2nW5FQkRg5swsmOyPIdzy4QHSh9e5iehn0OkAujQwx_x0QdzQn988b25QsUV-xCYB-1swil-MRv8VUaBEohu2Ln531lGz9YhUAlUIlA9CrNzjg5j9pGntljYMNjxNUpPWn2eJcBiA4tGukPRVykxbgw2n0d2KOb0G3HqwH1o6G0nK0LUY8Yotd2Pv5ABFThJLVhdUl2b9r_lkDHZR8uo1uB-iPl-_G0efeDxwjUn2wCUP8O79bSnwAAAP__USDDsg">