anonymous-fields2.cpp 128 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 class A { public: struct { int foo; } f; struct { int foo; } g; }; inline int useA(A &a) { return (a.f.foo + a.g.foo); }