arocc icon indicating copy to clipboard operation
arocc copied to clipboard

Segault: initialize invalid-size array of incomplete type

Open ehaas opened this issue 2 years ago • 0 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.

ehaas avatar Dec 15 '23 17:12 ehaas