arocc
arocc copied to clipboard
Segault: initialize invalid-size array of incomplete type
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.