<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/63412>63412</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clang] frontend crash, segmentation fault
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          rayblake
      </td>
    </tr>
</table>

<pre>
    I made a simple library that uses GNU C dialect to emulate generics similar to C++ templates.

The repository is here : [neotopia](https://github.com/rayblake/neotopia)

The issue is a "clang frontend command failure due to segmentation fault", so basically the clang parser is crashing.

The reproduction of the crash is easy, just clone [neotopia](https://github.com/rayblake/neotopia) and compile :

```shell
# That supposes the current path . is neotopia

# Crash of clang frontend
clang -I. -o testvla demo/variable_array.c

# This one works
gcc -I. -o testvla demo/variable_array.c
```

Notice that it's possible the blocks feature has to be explicitly requested :

```shell
clang -I. -o testvla demo/variable_array.c -fblocks
```
<img width="684" alt="variable_array" src="https://github.com/llvm/llvm-project/assets/136998453/b77d421a-8a2e-4d0e-96ad-f44f7d706f93">

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVE1v5DYM_TXyhZiBLX8ffEhmOsVe9pSeC1qibW1kyxXlpPPvC9nNNrtdFA2wwEADS-Lje48UkdmMC1EnykdRXhPcwuR85_HeW3ympHf63n2CGTUBApt5tQTW9B79HcKEATYmhl8__wYX0AYtqQDBAc2bxUAw0kLeKI6hxqKPZxchH4V8hEDzGi_xWaRXkT4c69NE4Gl1bILzdzAME3kCkT-AKB8XcsGtBkV5FbKZQlhZ5A9C3oS8jSZMW39Wbhby9qZAyNvXGNl-n8gwb3EFBCGlsriMMHi3BFo0KDfPuGgY0NjNE-iNIn2mcaYlYDBugQE3G4SUQl6AHfTIRqG10RuCA29Fz-RjEuWRJ7OMP9Lrnd7UDumGIzhejlGEfI_wXzYOoKxb6CcYAXgIXI3dvX3PSFTp8eOJrP17T-bwFMvN27q6WPKd4-Y9LQFWDBOcI9mvKd7jyRwuuxo3wLceHxeOvdOnM5wcBOLwYhE0zU7I2wt6g72l39F7vJ_V98BPk2GInrw6_8zH_qjUx9DeBL8H_-yCUXT0uAlC1gyrYza9pV17b516ZhgIQ2yOCTk2R09Af67WKBPsHTz9sREH0v_H4o-4AKfhyP9jAfnFzCO8Gh0mkV-FlFVTCCkBbTi-v8WLR-zVcfQfrWTty9vfafXuC6kg5A2ZKbCQtyyv2rYpylzIW1_XupAZnhqUdCp0Sqe2Qn0aimKodZ1WQ5vHZ5P_clBOdJfrNm8xoS6rmlo2WZ3nydRl1A4NpmlTt4VuaxqGtKZmaDOdqlrmZWI6mco8rWSa1VJm2TlvmkY21Fa9VmWltChSmtHYc-R9dn5M9lffVXmRycRiT5b38SflQq_HSIjUymviu11rv40sitQaDvwPSjDB7nNzL5wor-8mR-z2fST8a1Ykm7fdhz3eSUWPd9J_BQAA__8fY8-F">