Newsgroups: comp.lang.c Path: utzoo!henry From: henry@zoo.toronto.edu (Henry Spencer) Subject: Re: Is this legal ANSI? Message-ID: <1991Jan15.161639.19725@zoo.toronto.edu> Organization: U of Toronto Zoology References: <1991Jan14.225620.9974@demott.com> Date: Tue, 15 Jan 1991 16:16:39 GMT In article <1991Jan14.225620.9974@demott.com> kdq@demott.com (Kevin D. Quitt) writes: > Microsoft C 6.0 accepts: >struct master_log_entry > { > struct log_entry le; > union > { > struct gas_log_entry gle; > ... > }; > }; > > mle.gle. > ... > > without a complaint. Am I just lucky? Yes. Nameless members are illegal in ANSI C (except for the special case of nameless bitfields). Some compilers support this as an extension. -- If the Space Shuttle was the answer, | Henry Spencer at U of Toronto Zoology what was the question? | henry@zoo.toronto.edu utzoo!henry