member function not allowed in anonymous union
Anonymous unions cannot have member functions. The following sample generates C2669:
struct X { union { int i; void f() { // C2669, remove function i = 0; } }; }; void main() { }
Anonymous Unions