vickenty / lang-c

Lightweight C parser for Rust
Apache License 2.0
202 stars 30 forks source link

Various syntax errors #31

Closed mahkoh closed 3 years ago

mahkoh commented 3 years ago

The following gcc-valid sources cannot be parsed:

void f(void) {
};
struct s {
    struct t {
        int i;
    } __attribute((packed)) v;
};
struct s {
    union { int i; } __attribute__((aligned(8)));
};
struct s {
    int i;;
};
struct s {
    int __attribute__((aligned(8))) *i;
};
vickenty commented 3 years ago

This was fixed with 459a8e7398558d444d37a0af246f05930c478bc6 and cd83142953d79cd887896593906db1be68af9f18.