Commit abb54d14 by Joseph Myers Committed by Joseph Myers

c-typeck.c (build_unary_op): Replace unreachable diagnostic for taking address…

c-typeck.c (build_unary_op): Replace unreachable diagnostic for taking address of bit-field by assertion.

	* c-typeck.c (build_unary_op): Replace unreachable diagnostic for
	taking address of bit-field by assertion.

From-SVN: r90216
parent d5d9e598
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".
......
......@@ -2655,13 +2655,8 @@ build_unary_op (enum tree_code code, tree xarg, int flag)
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment