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 can't handle designated initializers in anonymous sub structs #41

Open GabrielRavier opened 4 years ago

GabrielRavier commented 4 years ago
struct s
{
    int a;
    struct
    {
        int b;
    };
};

struct s x = {.b = 5};

cparser outputs this :

cparser: src/parser/parser.c:1692: descend_into_subtype: Assertion `is_type_array(top_type)' failed.
Aborted (core dumped)