<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/68731>68731</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
aggregate as non type template parameter
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ordinary-github-user
</td>
</tr>
</table>
<pre>
-std=c++26
```c++
struct Config
{
int a;
};
template<Config config>
void f(){}
int main()
{
f<{.a = 1}>();//compile no
f<Config{.a = 1}>();//compile yes
}
```
i think ```f<{.a = 1}>();``` should compile
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMUsuOpCAU_Zrr5qYqAjbqgkVbdv0HCiozCAawJ_X3Ex_VNZ1ZzCQGjedxDzdHxmhGp7WAtwbe2kyuafJB-KCMk-FxGU2a1u6yRh2yzquHuMSkgLU90AZoQznkLeTv58nz4znR429MYe0T3rwbzHgSyxNDRDQuoQTWPKH29b2fSc-LlUkDux0e2B9W7OMgfHqjcABaAa0357L9U77Zz9K4E_97_gDsBmVzlQisRbIH-DjZrAF6B3rv_bwYq9H5Uzd8pflf6UPH1w2_r-tbXEyTcT_xC_xHvCcN4-RXq_AclynBVM1qmWlBeM1rTllNsklIWQxFyUs-yLLouqGqOCF12StVlJRUdWYEzSkjOclJRTkjV54rWnBZK953FelzKHI9S2Ov1n7OVx_GzMS4asGrkpHMyk7buNeJUqd_4Q4CpVu7gtg0l24dIxS5NTHFl0syyWohxzHoUSaNMqLzDtNj0fjsAC4yyFknHbI1WDGltERg78emj65eez8DvW-25-uyBP9D9wnofQ8Tgd73sL8DAAD__4lW1m8">