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

    <tr>
        <th>Summary</th>
        <td>
            Dependent member function name is resolved incorrectly
        </td>
    </tr>

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

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

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

<pre>
    Consider the following one-liner:
https://github.com/llvm/llvm-project/blob/fa2b038cadf17d08014e5fb75c47b5024860953e/llvm/include/llvm/ADT/PointerIntPair.h#L94

`Info::getPointer` is incorrectly resolved to be the function defined in this very line.
It's observable by jumping to definition (jumps to the same line), and by asking for information about `Info::getPointer` symbol:
```
instance-method getPointer
→ PointerTy

// In PointerIntPair<PointerTy, IntBits, IntType, PtrTraits, Info>
public: PointerTy getPointer() const
```

Function is actually defined 100 lines below, in `PointerIntPairInfo`: https://github.com/llvm/llvm-project/blob/fa2b038cadf17d08014e5fb75c47b5024860953e/llvm/include/llvm/ADT/PointerIntPair.h#L190-L194

I'm using VS Code with clangd extension, if that matters.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVFFv6ygT_TX4ZdQIjx3HfvBDbtpIke5Dpa_63sGMY-5iiGDcbv79Cie3aaXVSvu2UkRgzBnOOcOgUrJnT9SL7Q-xfS7UwlOI_Ys31jlX6GCu_SH4ZA1F4IlgDM6FD-vPEDw9Oespimov5LOQ-4n5kvIKjwKPZ8vTojdDmAUenXv__fd0ieEXDSzwqF3QAo-jQi2rdlBmLHdGtrKsaTvq3Xaod3orsW4b2W0reuSxfnCL-RLYP78JPL4G65niyfOrsnEzCax-dvWN3H1s5MmPIZOs9mfiO0I0EmwC64cQIw3srhApBfdOBjiAppv2xQ9sgwdDo_VkwHrgySZ4p3iF7MXmdsqJBe4SBJ0ovivtCPQVfi3zJfvG4Ya3ayqBbf6QcjifkdRMayqBncADKG8yWKU_MnYMEawfQ5zVilY6LAz_ICpdZx3cZ4VEI--_dWl9YuUHepqJp2DgC_a2_QVF24gO4R5-u34zc60znDx8N15Uh8d-PMDJ8w_L6T59u14oT185vkX1Gc_8X255L4t2dhDV_nHsV2rYCuxgCD7x36q6jcffxbIJ1MCLcu76WbhSytXkBJpc-MgMrM8-fheysmpkZvKfvNtlJ59-lt9v-EngboYl5evy___BIRiCD8sTDE75swH6k8knG_wqegSeFMOsmCmmTWH6ynRVpwrqy6bDbb3rOllMfatKrJTE3djJ3ahIGikbImPqocOxMYXtUWIlW5RlU1al3KAh2ppSK-oqXaEWtaRZWbfJqjYhngub0kJ9U7d1WTilyaX1FUK8MRWI-UWK_WqsXs5J1NLZxOmRgi076p_pQt6QZ5hp1hQfjepzN9n0aOYvHV4s0fX_uqwr6STwuPL-KwAA__9duK2q">