<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/87971>87971</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Crash when evaluating a constexpr static function template in an incomplete class context.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:frontend,
regression,
crash
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
cor3ntin
</td>
</tr>
</table>
<pre>
```cpp
struct s{
static constexpr auto f(auto extent) {
return 0;
}
static constexpr auto a = f(0);
};
```
The following crashes after clang 17.
https://godbolt.org/z/o7zaK7qKq
I's unclear whether this should be well-formed (see #73232)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8UsFu6zgM_Br6QjSQqSRyDj60DQIset0fkGXa1kKRXIluu_36hZ22G7wHPECQKEIzIodjS_FjZG7h8ASHc2UXmVJuXco6io9Vl_p_Wziq23LzDOoM6rFIXpxgAfN0SyAWseIduhSL8Mec0S6ScABqtoA_hKMAnfAOg5hZlhxRgf5Ogjnfoj8TWwR93ugV0OkHvqJ_4u-y7_n-nhiHFEJ693FEl22ZuKAdhDO6YOOItdndAyaRuYB-BLoAXcbUdynILuUR6PIJdEnm076Y15fXe9Bt_wvIFFyiC2wzvk8sE2eUyRcsU1pCjx3jO4fwMKR85R6BmsKMQNpo0rQ29htp1be6P-mTrbitTU2Ho9ZHU02to0NzcI3iwdSNcsdTrXjv2NVOqeMwDJVvSdFe7VWjGkV7s9O17vcn0sduaMxgBtgrvlofdiG8XdcWK1_Kwm1jTqaugu04lM0oRJtUoB-HnKJw7IEI6BmIMo-ZS_Ep_qQ2kdfb4VzlduV-6JaxwF4FX6T8_5t4Cdw-r89XtSLymw2LlXVS9s4AX44YlujEp4jC1zlYYfQRbUQfXbrOgYXXiZayIoU_ZFctObS_zNPLtHQ7l65Al7WQr-NhzukfdgJ02TQoQJdNhv8CAAD__wwR-R0">