------- Comment #9 from JonathanDBrandmeyer at eaton dot com 2009-06-17 17:16 ------- Similarly, I would like the following to work as an extension to the anonymous union support:
Given a structure like: struct foo { int a; union { int b; float c; }; int d; }; I want to initialize it with a statement like: struct foo value_of_foo = { .a = 0, .b = 1, .d = 2 }; instead of what is currently required, with braces around the initialization of 'foo::b': struct foo value_of_foo = { .a = 0, { .b = 1 }, .d = 2 }; This is a natural extension of the ability to access members 'b' and 'c' without tagging their union type. -- JonathanDBrandmeyer at eaton dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |JonathanDBrandmeyer at eaton | |dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676