wgtdkp / wgtcc

A small C11 compiler
MIT License
765 stars 130 forks source link

No checking for taking address of a bit-field #34

Closed huangguiyang closed 7 years ago

huangguiyang commented 7 years ago
struct S {
    int a:1;
};

void foo() {
    struct S s;
    int *p = &s.a;
}
wgtdkp commented 7 years ago

I am always aware of this but left it.

wgtdkp commented 7 years ago

Haha, it's a feature!