+2004-11-07 Joseph S. Myers <joseph@codesourcery.com>
+
+ * c-typeck.c (build_unary_op): Replace unreachable diagnostic for
+ taking address of bit-field by assertion.
+
2004-11-06 Ulrich Weigand <uweigand@de.ibm.com>
* config/s390/s390.md (attribute "op_type"): Default to "NN".
if (!c_mark_addressable (arg))
return error_mark_node;
- if (TREE_CODE (arg) == COMPONENT_REF
- && DECL_C_BIT_FIELD (TREE_OPERAND (arg, 1)))
- {
- error ("attempt to take address of bit-field structure member %qD",
- TREE_OPERAND (arg, 1));
- return error_mark_node;
- }
+ gcc_assert (TREE_CODE (arg) != COMPONENT_REF
+ || !DECL_C_BIT_FIELD (TREE_OPERAND (arg, 1)));
argtype = build_pointer_type (argtype);