fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3. struct b
  4. {
  5. char a:3, b:4, c:1;
  6. };
  7. int main() {
  8. cout<<sizeof(&b::a);
  9. return 0;
  10. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:8:19: error: invalid pointer to bit-field ‘b::a’
  cout<<sizeof(&b::a);
                   ^
stdout
Standard output is empty