class A { public: struct { int foo; } f; struct { int foo; } g; };