<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/89835>89835</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Crash when compiling VLA-type compound literal.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
tstanisl
</td>
</tr>
</table>
<pre>
The compilation of the following code crashes when compiling in C23 mode:
```
#include <stdio.h>
int main() {
int size = 5;
(void)(int[size]) {};
}
```
Options: `-std=c2x -Wall -pedantic`
Godbold: https://godbolt.org/z/84d13Tqve
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxsksuO2zoMhp-G3hA2ZMrXhReT-PhsCnQzaNeypcQqZMm15KQzT18oybSDoIBAXX5-FEH8wnt9tkp1UB6g7BOxh9ltXfBBWO1NMjr51r3OCie3rNqIoJ1Fd8IwKzw5Y9xV2zNOTiqcNuFn5fE6K_tIj5q2eCSOi5MK-AuwHthHrNhj3a_EtZ3MLhUCP_ogtctm4P99RrQNuAhtgRqgFqE-3N8REaPm9XukeyyBf5KAmovTEqgFarQNUB5iJpT9R5W6_wPE8z_7u8WvaxyBB_6CULHUBwm8n-gXpt-FMZiuSgob9PSE_e_k6IyM2BzCGnmgAWg434SQue0MNLwDDU0hc_7686IS2XHZ8lYkqsvrnLesaas8mTtRjq2sGfFTzvK6JGKSTZPIZcGKpqYq0R0xKlhBnPKipTwjMRa8pGqSlFdjTVAwtQhtMmMuS_w70d7vqmvahpeJEaMy_mYJIquueBOBKDpk6yKTjvvZQ8GM9sH_rRJ0MKo7Ric8--Dbl5c0vK13J7ndSjQ6qE2YLNk30z1NRYd5H7PJLUBDrP7Y0nVzP9QUgIZbTz7OK_b8OwAA__9vh9Pr">