rui314 / 8cc

A Small C Compiler
MIT License
6.12k stars 742 forks source link

Error in tag scoping #71

Open andrewchambers opened 8 years ago

andrewchambers commented 8 years ago
struct T;

struct T {
    int x;
};

int
main()
{
    struct T v;
    { struct T { int z; }; }
    v.x = 2;
    if(v.x != 2)
        return 1;
    return 0;
}