if they are bitfields.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23347
138bc75d-0d04-0410-961f-
82ee72b054a4
1998-10-26 Jason Merrill <jason@yorick.cygnus.com>
+ * typeck2.c (process_init_constructor): Only skip anonymous fields
+ if they are bitfields.
+
* cp-tree.def (TYPEOF_TYPE): New code.
* error.c (dump_type_real): Handle it.
* pt.c (tsubst): Likewise.
specially.
* init.c (build_member_call): Don't try to convert to the base type
- if it's ambiguous.
+ if it's ambiguous or pedantic.
* typeck2.c (check_for_new_type): Only depend on pedantic for
C-style casts.
{
register tree next1;
- if (! DECL_NAME (field))
+ if (! DECL_NAME (field) && DECL_C_BIT_FIELD (field))
{
members = expr_tree_cons (field, integer_zero_node, members);
continue;