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

    <tr>
        <th>Summary</th>
        <td>
            clang: 18: hangs on a simple syntax error
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          wierton
      </td>
    </tr>
</table>

<pre>
    Compiler Explorer: https://gcc.godbolt.org/z/7c9dKMGcW

When compile this program with option `-O0 -fopenmp-simd`, clang hangs:
```
static int a;
#pragma omp declare target
b = b ^ 3 + a;
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckU9v3CAQxT_N-DLaFQb_PXDYZOMeqqrHnAFPbCoMCNgm6aev1t6qVSUEQnrz5un9VM528UQS2idor5W6lTUk-W4pleArHeZP-Ry2aB0lfPmILiRKIC64lhIziAvwCfi0GHNewqyDK-eQFuDTL-BTb8b567cv5hXYFdjluF9X8mgOSyyrzRhTWJLa8N2WFUMsNniEjp2-Mzy9hUh-i6dstxk6BvwZjVN-wVX5Zd9_WHfscfZvLqpYg9YXVCCeHhouYlLLpjBsEWcyTiXCotJC5VBoBHFFjdC-oEDgT_9O_9lQzVLMoxhVRbLuxr5ph65n1Sp5I8Z2aNQ4iFnXM7X9MLyZRreCDYNgVFnJGRc1q7ua133LzqLuVMOpNarrtdENNIw2Zd3ZuZ_bvcfK5nwj2Y312FROaXJ5B8X5XgJwfmeW5F1_0rclQ8OczSX_dSi2OJKHXFywHnZ49_IweFSY7RYdYf70RX0gpRRSdUtO_sfXlvWmzyZswKe79-M5xRR-kCnApz1qBj7taX8HAAD__2OZt2E">