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 some usage of (probably invalid) weird struct initializations #42

Open GabrielRavier opened 4 years ago

GabrielRavier commented 4 years ago
typedef struct
{
    int a;
} s1;

struct s2
{
    s1;
    int s1;
};

void f(struct s2* p)
{
}

cparser outputs this :

cparser: ./src/ast/type_t.h:266: is_type_compound: Assertion `!is_typeref(type)' failed.
Aborted (core dumped)