Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michael K. Johnson <johnsonm@nigel.vnet.net>
Subject: Re: gcc question
Date: Tue, 04 Jun 1996 08:22:26 -0400	[thread overview]
Message-ID: <199606041222.IAA06745@nigel.vnet.net> (raw)
In-Reply-To: <Pine.LNX.3.91.960604103638.1696H-100000@linux.cs.Helsinki.FI>

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?"

       reply	other threads:[~1996-06-04 12:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.LNX.3.91.960604103638.1696H-100000@linux.cs.Helsinki.FI>
1996-06-04 12:22 ` Michael K. Johnson [this message]
1996-06-04 14:50 gcc question David Mosberger-Tang
     [not found] <199606032221.PAA15714@koala.azstarnet.com>
1996-06-04  7:46 ` Linus Torvalds
  -- strict thread matches above, loose matches on Subject: below --
1996-06-03 22:21 David Mosberger-Tang
1996-06-03 21:13 Brian Wood
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox