struct X { int x : 20; int y : 12; }; void f(const int& x) {} void f(int& x) {} int main() { X o; f(o.x); }
Standard input is empty
prog.cpp: In function 'int main()': prog.cpp:12:8: error: cannot bind bitfield 'o.X::x' to 'int&'
Standard output is empty