<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/60431>60431</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
error: constexpr variable must be initialized by a constant expression for
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ecatmur
</td>
</tr>
</table>
<pre>
```c++
template<auto F> constexpr auto x = F();
int f(auto) {
return [](auto) {
return x<[] { return 1; }>;
}(2);
}
int i = f(3);
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0kdGO4ywMhZ_GubGmAtMkzQUX7XTyHpA4Lb9IqIDM39mnX5F2ZrsXK1lCOv6MDxyTkrsszBrqE9Tnyqz5GqLmweR5jZUN45eGRjxqADqVEmcQx8zzzZvMoN7NmgP2oD5wCEvKfL9F3LQ7gjpjD3QA6kA9J92ScQI6FASoQ2ifDUTEyHmNCz7s_At6Ae-g3h9wQb5VCeqE0J5BffysLUNFogO9uinSjy23GS7m1F_M9w9Uo1ZjpzpTsZZNW8uuplZUV113rIwkmga2VnViOIyjbeU0ipprY5rKaRKkhFSShJBC7Oxk6pqaaRil2XfjBHvBs3F-5_3nvAvxUrmUVtaN2CtZeWPZpy0looX_x60JRCW0qMvMm10vCfbCu5TTn1uyy541xxgiqONLQp8mOmM947ymjJbRLS47490vHtF-oXmwZslYeE7JhQWnELFao9fXnG8J1BGoB-ovLl9XuxvCDNSX3c_j7RbDfzxkoH5znID67UW_AwAA__9E87nx">