libfirm / cparser

C99 parser and frontend for libfirm
http://pp.ipd.kit.edu/firm
GNU General Public License v2.0
336 stars 38 forks source link

cparser aborts on initializating structs in arrays #34

Open GabrielRavier opened 4 years ago

GabrielRavier commented 4 years ago
struct struct_type
{
    int member;
};

void f(int x)
{
    struct struct_type a[] = {{x}};
}

Results in cparser outputting this :

cparser: ir/opt/scalar_replace.c:242: link_all_leaf_members: Assertion `is_End(succ)' failed.
Aborted (core dumped)