public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c/10676: Using unnamed fields in initializers
@ 2003-05-08  2:26 marcus
  0 siblings, 0 replies; only message in thread
From: marcus @ 2003-05-08  2:26 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10676
>Category:       c
>Synopsis:       Using unnamed fields in initializers
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu May 08 02:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     marcus@gnu.org
>Release:        gcc (GCC) 3.2.2 20030124 (Debian prerelease)
>Organization:
>Environment:
Debian GNU/Linux i386-linux-gnu
>Description:
union
{
  int raw;
  struct
  {
    int foo;
  };
} baz = { .raw = 0 },   /* OK */
  zab = { .foo = 1 };   /* unknown field `foo' specified in initializer */

Unnamed unions/structs are very useful.  If the initializer for zab were valid, they would be even more useful.

Thanks for your consideration,
Marcus
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-08  2:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-08  2:26 c/10676: Using unnamed fields in initializers marcus

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).