------- Comment #18 from balrogg at gmail dot com 2010-05-15 03:23 ------- (In reply to comment #11) > An example program that shows 3 different methods. Only one works (see > comment) > .c = 3, //Will not work > {.c = 3}, //works > {.c= 2}, //Does not work
For sake of documentation, with versions from before the fix the second method did not always work. It seems to depend also on the ordering of the members in the anonymous union. If .c is the first, second or third member of the union it seems to work. It does not work for the fourth and following members. Really puzzling. -- balrogg at gmail dot com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |balrogg at gmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10676