3 ms·
That already exists, as a Microsoft extension, and if the struct is declared within the union, in standard C: https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Unnam
by cesarb 9y ago
That already exists, as a Microsoft extension, and if the struct is declared within the union, in standard C: https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Unnamed-Fields.html https://gcc.gnu.org/onlinedocs/gcc-7.2.0/gcc/Unnamed-Fields....
(However, in your example, c1.a is ambiguous, so it won't compile.)
- benlorenzetti 9y agoI did not realize this as a Linux user--thanks. (But this is my point, it is should not be ambiguous.)