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

    <tr>
        <th>Summary</th>
        <td>
            [clang] Assertion `!isResultDependent() && "Generic selection is result-dependent but getResultIndex called!"' failed
        </td>
    </tr>

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

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

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

<pre>
    Triggered by clang-tidy (HEAD at 629126ed44bd3ce5b6f476459c805be4e4e0c2ca),
crash [test5.log](https://github.com/user-attachments/files/20984723/test5.log) and C reproducer
[test5.txt](https://github.com/user-attachments/files/20984722/test5.txt).
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyskb1u3DoQhZ9m1BC7oIY_kgoVa-_VTdogL0CRsxIDrrQgR4b99oFkx-5SpZrqO2dwPldKnBaiHswTmGvlNp7X3Ie7Wzg-1pdqXMNb_zPHaaJMQYxvwie3TCeO4U0Att_-u1yFY2Gxq9FS0HoMypMZ7U03VpvOt9KMpEmT9OgdYAf4DPLisyuzAPPEVNic0zqBuQK2M_OjgLoADoDDFHnexrNf74DDViifHLPz850WLoDDLSbaL8qu1Q0qwOErDzvhliCeRaZHXsPmKYO8fFbyK_-DSvys3POwO1ehV6FTnauorxtTK6kbraq5d16hVKS8sl6T8WQV1Ub5oG_BStNUsUeJRlol60YhqnNHN0-NRyNdraxqQUu6u5jOKb3cz2ueqljKRn2treqwSm6kVA6ViIcmQNyt5n4HTuM2FdAyxcLlK4Ijp8P_O2Gu4lIKZY7rIsBKwDqWH1S2xFd60BJoYcB2HxfQAloBiP_TQjl6USiRP8hYRD6gU_hDiXFjMRG_h31fAr0K71KiAFjvn2Ijbi4mCtWWU_8XK_vvH-f0yOsv8gw4HFvsZj7meOnxdwAAAP__RgPmng">