<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/62496>62496</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang targeting C99 pedantic
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mu578
</td>
</tr>
</table>
<pre>
I have noticed I am allowed to write such initialization "int x = {0};" (works for any POD types) is that legal? I didn't find any obvious references covering that case in ISO/IEC 9899:1999 only unions and structs are covered ; so is that a "clang feature" to allow it?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxEkb2O2zAQhJ9m1SzOkEn9sVBxPkeAqwuQJ1hRa4kJTRrkyo7z9IHsIFex4M5gvhnK2c2BuYf6APWxoFWWmPrLWrddMcbp0Z9woRtjiOIsT3hCuiB5H-88oUS8JyeMebULuuDEkXd_SFwMCEq5IPgbQR8R2kMJ7RH0AZRCUN09pl8ZzzEhhQd-_zyiPK6cQRl0GWUhQc8zedADnnByUwDVCp5dmJ6KON5cXDMmPnPiYDmjjTdOLswvtaXM6AKefnyCGk7fPtB0xoB-3xtjMAb_wDW4GDJSmDBLWq1kpMQvH54Q9AFz_B-HNiLrKcx4ZpI18YYi8dUGOgE9FFOvJ6MNFdzvm06XdWmqtlh6OzWdqlrddFRXpW10Z8nyWOuRmGzdFa5Xpdru1b4rTdnumnO9r0qj7bmaxk5ZqEq-kPM772-XXUxz4XJeuW9UZZrC08g-P1dUKvAdn5-g1DZq6jfN27jOGarSuyz5y0WceO5fXEJpZtkq_DAGrzxREGeLNfl-Eblm0O-gBlDD7GRZx52NF1DDZvXvebum-JOtgBqeATKo4RnwbwAAAP__G9_Gzw">