<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/56471>56471</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
_Static_assert declaration can not be first of for-triplet
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
chumarshal1
</td>
</tr>
</table>
<pre>
`int main()
{
int i = 4;
for (_Static_assert (3, "This is a three"); i < 7; i++) {
i += 2;
}
}`
`clang test.cpp -std=c++11
test.cpp:4:10: error: expected expression
for (_Static_assert (3, "Three is a go"); i < 7; i++) {
^
1 error generated.`
But gcc can build successfully , is it clang issue?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyVU8mOnDAQ_RpzKTXywnrg0D2d-YHkPjKmGhy5MbJNkvn7FNCjzCS5DCrZtVHv1UP0fnjtWMXtnOCu7cxkw2TL-JXxM6svhwP0bA0WmLpCwdS7_M0HoJdeviadrHnRMWJIW0Yx-US3_DbZCGQa0hQQKbMBqMs-7Qnq3WXyslsLH0B3YNgqhCs_4LL6-gg2r-IPyu_Pihun5xESxpSbZYFTTANNMgeaEO-735qYOtOCZ8HpAAzBh935taBJOGxOwBitnz8lAS1-aDD6TwsArPxyZMRBCEacMWiik_938cuaYDQGjJ6hX60bIK7GEOvb6twrbKS2T5LgkMfGuCJTz_8OyoZODa1qdZZsctj9teGANIB4kBg71uwT9Ag3G2ICf9t0OaVgF4cpW4PrppSWSGoy-Uw22jStfW78nQLnfrxdpyX47yQ2hTuzSE5ZFbXIpu6mhwpV3ypsuW6NGgre8KaoCzRtI4chc7pHFztWkpRyxp-P5Ujy8prZTnIpeS0Er4pK1LlWvVI1ClE2Zd2rhhUc6Sdw-cYj92HMQrdT6tcxUtHZmOKfIslgxxlxh6P5ek2TD52Z1rsOcdJOZDt8t9P_DeWQ-r0">