8cc icon indicating copy to clipboard operation
8cc copied to clipboard

Error in tag scoping

Open andrewchambers opened this issue 10 years ago • 0 comments

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;
}

andrewchambers avatar Sep 01 '15 14:09 andrewchambers