This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: anonymous struct


On 03-05-2010 00:47 wuyin wrote:
struct T{
   int n;
};
struct T1{
   struct T;
} t;
t.n=1;

Please support this grammar.

I believe it _is_ currently supported with -fms-extensions.


See:

http://gcc.gnu.org/onlinedocs/gcc/Unnamed-Fields.html

Regards,
--
Pedro Pedruzzi


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]