Vexu / arocc

A C compiler written in Zig.

Home Page:http://aro.vexu.eu/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Segault: initialize invalid-size array of incomplete type

ehaas opened this issue · comments

void foo(void) {
    struct bar b[1][B(1)] = {1};
}

This segfaults in findScalarInitializer when trying to iterate over the struct fields. The fields pointer is undefined since it's an incomplete struct.