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

    <tr>
        <th>Summary</th>
        <td>
            ICE when returning the captured reference in the deducing this lambda
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

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

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

<pre>
    ```cpp
int main() {
  int x = 42;
 auto l = [&x](this auto&& self, int n) {
    return x;
  };
 l(10);
}
```
https://godbolt.org/z/bdvKn9M6T
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckcFu3CAQhp9mfEFZ4cHYy4FDkq2lquqtL4DNeE2LsQU4u-3TV7aTrBQJCeb_4B9mxqTkroFIg3wBeSnMmsc56pFuzvs_RTfbvxpqfqx-WYBfgD-7kNlkXAA8AyoGzcuhM7aROwNxYRWC-JDNmmfmd3nLg_Ud5AXwnEeXdghYA9YskR8AX3eX8MWZsUh5jYHdH74Mmssj8oDnkgOqT2nDx-GjhCMcc14SiGfAFrC9zrabfT7N8QrY_gNsO_v2I6if9a_CamGVUKYgXTa8rqRUtSpGPajK1v1QCnmWojPKlohU93bopajEIAqnkWPFSzyXUmClTiW3XHFpTEOoLJZQcZqM8yfv36Ytd-FSWkk3qpFV4U1HPu1TQQx0YzsExG1IUW9vnrr1mqDi3qWcHi7ZZU_6--s3dhspvDfNhSvLI7HeLHmNZFmkgSKFnpgLO7Fk1_645hLzZuqsKdbo9ZdeuTyu3amfJ8B2y_m-PS1x_k19Bmz3nybAdq_kfwAAAP__L4ey5g">