From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199606041222.IAA06745@nigel.vnet.net> Date: Tue, 04 Jun 1996 08:22:26 -0400 From: Michael K. Johnson Subject: Re: gcc question In-Reply-To: Linus Torvalds writes: >On Mon, 3 Jun 1996, David Mosberger-Tang wrote: >> Please note that it is _not possible_ to initialize unions in ANSI C. > >Actually, it's possible (umm - raincheck on the standard here, I'm too >lazy to look it up, but I'm fairly certain). The standard allows you to >initialize unions, but only the _first_ entry in a union. Absolutely right. Cancel the raincheck, Linus. Just in case anyone wants standards support, see 6.5.7. It says "A brace-enclosed initializer for a union object initializes the member that appears first in the declaration list of the union type." michaelkjohnson "Ever wonder why the SAME PEOPLE make up ALL the conspiracy theories?"