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

    <tr>
        <th>Summary</th>
        <td>
            Lambda converted to function pointer converted to boolean in the requires clause of a lambda causes a segfault
        </td>
    </tr>

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

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

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

<pre>
    <https://godbolt.org/z/jadvT8oec>
```
int main()
{
    return
    []
    (auto&&...)
    requires (not not []{}) // segfault
    //requires true // this is fine
    { return 42; }
 ();
}
```
segfaults with clang 19.1.0 and 18.1.0, but not 17.1.0
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxcUsuOnDAQ_Jrm0lpktxkeBw7DbjjlmB8w0IBXHnuD7VklXx8xw8wqK4HsflS5St06BLM45hZOHZzeMp3i6re2S1JyvOjFccwGP_1pQb2uMX4EUGegHqhf_DR4G3O_LUD9X6D-XU_XX7XnEdQPEGcoxfGJs3ERL9o4oBqo2YtVB-KMiLhxTJs7gruKR0C1TtEDlUBlnud35B3zO5mNw97ifMT9P6BVB9UbUIN3lRh4mXWy8cm5Z5_4uCV-dMbVBDQBZ-P40V11hz4sCFSHO7c442FDdTcnb9_MPp4M-GniiqPVbkHZ5DIXqN2Est6vQK84pLt2We2ZbGrV1KhGZ9zKSqmmEIVosrWd9FSdBElRNzM1WrCSoyqVmgsuS1GXmWlJUCFJSlmLsqjyWZaS5aBIlFrK0wkKwRdtbG7t9bKPLDMhJG6lbEohM6sHtuG2A0SOP_FWBaJ9JbZ2B70MaQlQCGtCDF800UTL7U99GSaNo3dX3iJPGD3OyY3ReIcf3rjI2__VwXvL2qFxGFf-GuhodQqMfkaN9mDdMwH1c5RZ2mz7bRlNXNOQj_4C1O_ijuPlY_PvPEag_mYpAPWH52tL_wIAAP__yPfj-Q">