<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/55128>55128</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Variable-sized object may not be initialized (std array size)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
AnFunctionArray
</td>
</tr>
</table>
<pre>
```
#include <array>
int main(int, char**) {
std::array<size_t, 4> test;
size_t duptest[test.size()] = {}; // error: variable-sized object may not be initialized
}
```
What's the point of `constexpr` here?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVUsGO2yAQ_Rp8Ga3lgG3iAwdv0nxCe6zAnsRULFiAdzf9-o5Jqla91RrB4GHevPeECfNdsb55RnNmzci4sH5y24zAxEnHqO9MfHnWymp9hjdtPeNHShk_wbToyPhYYgAmXx8Xgb6UZyZGiifSKdmf-L10tYQLGVNm4u-GUod5W0upe923ev9L8wiedWcidi5T5JlagfELBWCMIdIgeNfRauPwZW-aIZgfOO2M7-BDBoNgvc1Wu7361EVAj-QfL8r6bdHEVybIC8IadvnhCnRpCj5l_Fwj5bBgRCYu1azEPIhBV9lmh-rrf5AhJUfyC4pV8JA8VFt0asl5TbuPRerN5mUz9RTe6ODc--_tZY1hh6ejTWnDREnXHfixWpThk5RXlKYV2KNp2pY3zWESQyvb-ar7ymmDLikynHHu8QMKBOVkeGUVbzhvWi4bQUlfH7t-MgfCk0czaNmxtkF6E67eedQh3qqoCiWz3RIVnU05_SnqlOzNI5ZxhK-3vISoRn_Z_JRt8ONuQVUoqCLhF10s0FY">