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

    <tr>
        <th>Summary</th>
        <td>
            Error on requires expression in templated generic lambda
        </td>
    </tr>

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

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

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

<pre>
    https://godbolt.org/z/Yfb8dxYbj

```cpp
int main() {
        []<int = 0> {
                void(requires(int* x) { x = 1; });
        }();
}
```

```
<source>:3:31: error: incompatible integer to pointer conversion assigning to 'int *' from 'int'
    3 | void(requires(int* x) { x = 1; });
      | ^
1 error generated.
Compiler returned: 1
```

GCC and MSVC seem to be fine with this code.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJykU02PozgQ_TXFpdQRLocYDhzS-djTnlZaqY9gKol7wWZtk870rx8ZaM10azSXQXz5uVz13nO5CcFcLXMNxTMUx6yZ4s35-qTfW_4va133rb7FOAaQe6Az0Pnqutb1ceP8Fej8DnR-ubRl93hpXyE_Qr5f37t8ufU4LoixEYfGWKASqEJQzx_x1VIb5CHFgDxiDvL0OSKv7s50QKXn_yfjOQCVxkagPT7WdPiY1wqQzwjqCFSB_ClDQspPoDp-4fpLAetQHoKbvGaQJ5B7mR4Bco_svfPpx1jthrGJpu0ZjY18ZY_R4ejSwKN29s4-GGdxMd3Ya5oHUrNs2gMpvHg3rBCQWmojIkoEdcA_8QDnK2WB4rRAYmGPV7bsm8jdZsEPbhhNzx49x8lb7pI-8Ruz_jocsLEd_v3PvwcMzEMS1jJejGV8M_GG8WYCatfxWiLratlVsmoyroWSQqqyUDK71S1tCxZVrndKt0orVShRdqK8XLTcVuKSmZpy2gohKCeqJG3KjnmnC91VO7pUsoRtzkNj-k3f34fUp5kJYeJaiKLMKeublvsw9zuR5TecZ4Eotb-v06KndroG2Oa9CTH8SBNN7Lk-zZY5ix-7gPwYPYd5Z43FyMPYJzMXW43Gvhnarskm3389Sybepnaj3QB0TmXWz9Po3SvrCHSeyQWg88r-XtP3AAAA__-HihCl">