according to http://gcc.gnu.org/onlinedocs/gcc/Unnamed-Fields.html#Unnamed-Fields
-fms-extensions
will enable the feature you (and I) want.
More Related Contents:
- Why does C++ disallow anonymous structs?
- union ‘punning’ structs w/ “common initial sequence”: Why does C (99+), but not C++, stipulate a ‘visible declaration of the union type’?
- C++11 anonymous union with non-trivial members
- How do I compare chars (or strings) using void functions, also comparing chars that were taken from a struct array
- what does this error mean in general? and how I fix it in this case? [closed]
- Why isn’t sizeof for a struct equal to the sum of sizeof of each member?
- Accessing inactive union member and undefined behavior?
- Difference between ‘struct’ and ‘typedef struct’ in C++?
- When should you use a class vs a struct in C++?
- Unions and type-punning
- Purpose of Unions in C and C++
- Difference between a Structure and a Union
- When to use bit-fields in C?
- How to use a C++ string in a structure when malloc()-ing the same structure?
- sizeof a union in C/C++
- memset() or value initialization to zero out a struct?
- Structure of a C++ Object in Memory Vs a Struct
- using struct keyword in variable declaration in C++
- How to read / write a struct in Binary Files?
- What is the difference between using a struct with two fields and a pair?
- What happened to the “aggregate or union type that includes one of the aforementioned types” strict aliasing rule?
- Force C++ structure to pack tightly
- Mixing class and struct
- Access struct members as if they are a single array?
- Is it safe to return a struct in C or C++?
- how to assign multiple values into a struct at once?
- Initializing an object to all zeroes
- Purpose of struct, typedef struct, in C++
- Variable Sized Struct C++
- memcpy/memmove to a union member, does this set the ‘active’ member?