struct T { enum E { A = 0, B, C, D }; E a : 2; E b : 2; E c : 2; E d : 2; }; int main() { cout << sizeof(T) << endl; return 0; }