arocc
arocc copied to clipboard
Disallow address-of bitfield
struct S {
int x: 4;
};
void foo(void) {
struct S s;
(void)&s.x;
}
clang output:
test.c:7:11: error: address of bit-field requested
(void)&s.x;
^~~~