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

    <tr>
        <th>Summary</th>
        <td>
            clangd hangs on valid C++
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clangd
      </td>
    </tr>

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

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

<pre>
    foo.cc:
```
template <class T>
void foo() {
  T bar;
  auto baz = (bar, bar);
 baz.foo();
}
```

`clangd --check=foo.cc` hangs starting with 7fd84264eda6546950883a20c2f948eb1a560f4f when building inlay hints. It terminates almost immediately at previous commit.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxckt2KpDAQhZ-mvCla0hWNeuFF_2yzez8vUPlRsxNNY2IPM0-_9LTswkIgVFJ1-DinOCU_Ls71UJ-B6Kcfp0ucZ16sWysggvpa8JanuPbvbP1qXC50tJ_9EGNpDMgTiBMosR9xym6-B84OQV5M4JTwDeQPEKdH9BaHGIFaoA6hOYM4Ib6h5hXkq-AtR9T8hSCvCNQ-v-jy3UHd3qT5q_wr83qD5vofxas0gZfR4uFgJmfeQV53aCVw4mVMmDKv2S8jfvg8YTPYtiJVOcuqrlRXi7aVTMLQ0FWt00eulRiqAT8mt6DefLDPWb8E_sTJLzmV-CtjduvsF84uIYc5pox-np31nF34RM54X93Dxy2hifPsc1nYXtpOdly4_tjIjoRUUhVTPwhpFDVHU4tmEJWzTUVaG9XqoTKyM4XvSVAt6CiOSjRHVYpBGqWVJKmdHthAJdzMPpQhPOYyrmPhU9pcfyRVS1UE1i6kPfuXW3vma_-cOOhtTFCJ4FNO_zSyz8H1u7svJ-OCDw7e4gXoDHQutjX0U8739FwRugHdRp-nTZcmzkC3p9Z-He5r_O1MBrp9wyWg28736OlPAAAA__9mrc2l">