* c-typeck.c (convert_for_assignment): Use the type of
the member for the initialization.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@127646
138bc75d-0d04-0410-961f-
82ee72b054a4
2007-08-20 Richard Guenther <rguenther@suse.de>
+ * c-typeck.c (convert_for_assignment): Use the type of
+ the member for the initialization.
+
+2007-08-20 Richard Guenther <rguenther@suse.de>
+
* c-objc-common.c (c_disregard_inline_limits): Remove.
* c-objc-common.h (c_disregard_inline_limits): Likewise.
* cgraphunit.c (cgraph_process_new_functions): Call
if (pedantic && (!fundecl || !DECL_IN_SYSTEM_HEADER (fundecl)))
pedwarn ("ISO C prohibits argument conversion to union type");
+ rhs = fold_convert (TREE_TYPE (memb), rhs);
return build_constructor_single (type, memb, rhs);
}
}