<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/54380>54380</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang c++20: rejects code when using a immediately invoked lambda in a concept
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Techatrix
</td>
</tr>
</table>
<pre>
```c++
template <class T>
concept always_true = []() { return true; }();
template <class T>
constexpr auto foo() requires(always_true<T>) { return true; }
static_assert(foo<int>());
```
https://godbolt.org/z/EebsTsz9o
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyNUtGOmzAQ_BrzYjXCdiDw4IfL5e4L8n4y9ja4NZjay-VyX98FcmpUqVKlRTDMMjvMuovuplldbmWZPC5Vnlj5hDBMwSBwpp5tMDnzM1MvG2fjaGFCbsLV3PIbpnlpO3FWHVl1YrJhsuXscOQJcE4jXxqYOtKrO0lgU_qvWRnhY0rczBj59xjv-gl-zT5BJvjggxTWb_9t4GFuRoPevtFASEg6i7h69iOuCqvRR69fOW2wR5wyU09MvlJdoutiwF1MF0KfdL1Al8_5s42F08q1qjUFegyg6Q_HC7-HLUuSIJs_wGLmNjrg1x5GPmdPTYb7YQDnKZtw4358jz_B8WCGzhE1En9fRTGnoP9y5LGfu52NA4EQ3r9u36YUl2kEfc7zEuBrtVdNWfS6BlsasW9kUzVGdcKKrnHWVLZqKwFQF8F0ELJeFi3lCFe-StAz7b3wWpZSlkrspVJKiJ072NYcQAiom7auBNuXMBgfdouPJaoi6dVSN18ykcFnzH9I2ou_jAB6O1cFHYA-Jn0G2xtM_qNYh-vV_G9q9No0">