<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/125225>125225</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clang accepts invalid code that with trailing comma
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:frontend
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
hokein
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hokein
</td>
</tr>
</table>
<pre>
Clang doesn't diagnose the following invalid code (with the trailing comma), it treats as valid code:
```
void func(int);
void k() {
func(1, );
}
```
This is a regression caused by https://github.com/llvm/llvm-project/pull/114684.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUkd9u4ywQxZ9mfDP6Ihjwvwsu0lZ5gu8FMExstgQig1P17VdOk626dyshjXR05nA0P1tKmBOzgfYFiJb8ziEBEbRvjd3qklfzpTVT9p_mNdo0o89cElBf0Qc7p1wY68J4zjHmj5BmDOlmY_DosmcEGj5CXe6WutoQd4fLl4sFGoFeMVSsK9ta0Bb8XgR1BLE_3EcnHk8cbzl4PG_JAQ0h1T1FvTz1d6ABaETodwmfPrl_9McJ_dtfmSCO_y-hYChoceV55VJCTujsVtjj9IlLrdeyd6IT0GkOddmmg8sXoFOMt-f477rmX-wq0Om6xQh0klJ3gz403ig_qtE2bGSvBqWI2rZZzNgrPXXdWTg7dUKw7J0T3urWtp2WrWyCIUGtkEpKLbSkg9fedoqnwY1aWJagBV9siIe9wCGvcxNK2dhIaonaJtqJY3kAdjtAUMfzmlPl5B-oV3MvP21zAS1iKLV8p9VQI5v7Jlrn-FrLT8J1sRW_GP_g22xrNP98t3v5sl_uq__N0O8AAAD__31d04s">