PR c++/9623
* decl.c (reshape_init): Don't mess with initializer labels.
From-SVN: r63045
+2003-02-18 Jason Merrill <jason@redhat.com>
+
+ PR c++/9623
+ * decl.c (reshape_init): Don't mess with initializer labels.
+
2003-02-18 Ben Elliston <bje@redhat.com>
PR other/7350
{
/* Loop through the initializable fields, gathering
initializers. */
+ /* FIXME support non-trivial labeled initializers. */
while (*initp && field)
{
tree field_init;
initializer for the first member of the union. */
if (TREE_CODE (type) == UNION_TYPE)
break;
- if (TREE_PURPOSE (field_init))
- field = TREE_PURPOSE (field_init);
field = next_initializable_field (TREE_CHAIN (field));
}
}
--- /dev/null
+// PR c++/9623
+// Test for trivial use of named initializer extension
+
+struct S { int x; int y; };
+S s = { x:1, y:2 };