<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/88104>88104</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
lambda with template parameter crashed in unevaluated context
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jcsxky
</td>
</tr>
</table>
<pre>
template<auto F> constexpr auto x = F();
template<class> constexpr int a() { return 1; }
template <class>
struct A {
template<typename U>
using Func = decltype(
[]<class T>(T) {
return x<[] constexpr { return a<T>(); }>;
}.template operator()<unsigned long long>('2')
);
};
A<short>::Func<int> y;
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxUUl9yuzwMPI140TTj2CGEBx7yp5yg3wEMqIF-xjC23Ca3_41NklKYAY-s3ZVW0t4PV0tUQX6C_JLpwP3kqq_W3_6_Z83U3SumcTaaCdRZB56wBvWO7WQ90212mGI3BHXBGuQBZAnqBOIC4rhCtkZ7_xc4WEa9IBCKEzri4CxuQZ0QistC8ZcIV0zLjWcXWsZjZFgiiIgrYb7PZPVI-N8LEzOCH-wV62DbVHlHrYmZsZxXzmLJUxI_IoE8fDzq_c2Lz6P4G6jzAls1umpOgzo_eBajUqfq_WVZ0i0um1fH00xO8-SeiHOwaWIdmsle0-fJV0iQRUxamNaTSCqP8xHU2feT46R7BHWMNoA6DzaG8A7qlHWV6kpV6oyqbbGV-1wVO5H1Vd5plRclHYRQTVcU6jPXeakKymnfqD1lQyWF3ImdKNMrNp_qs21Fnnd5s89LIWAnaNSD2RjzPW4md80G7wNVh8NW7DKjGzI-baOUln4wXYKUcTldFTFvTbh62AkzePa_LDywocrosek0_gzcv7YAZ-30SEwOW6d9Tx0OFoOlb22CZurirJhunAVnqp559tEXWYOsrwP3odm00wiyjlqP39vspi9qGWSdKvQg69TBvwAAAP__FgH8Ow">