GCC has the -fms-extensions option, which allows you to use anonymous structure elements:
struct a { int x; } struct b { int y; struct a; }
This allows you to access element x in struct b simply by using bx . This is very useful, but it seems to be a Microsoft extension that is emulated by GCC.
Will using this option make my code less portable or consider it "safe"?
c gcc
Alexis king
source share