diff options
| author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-07 00:31:55 +0000 |
|---|---|---|
| committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-11-07 00:31:55 +0000 |
| commit | 43d082883d0977c870cb4288c912a583fec8482e (patch) | |
| tree | 4ed7cc04dab762db0ecf111ff7600d457339b8db /gcc/c-typeck.c | |
| parent | 49515bae9bda292a39be7270dc1ab9cf74c0a957 (diff) | |
| download | ppe42-gcc-43d082883d0977c870cb4288c912a583fec8482e.tar.gz ppe42-gcc-43d082883d0977c870cb4288c912a583fec8482e.zip | |
* c-typeck.c (build_unary_op): Replace unreachable diagnostic for
taking address of bit-field by assertion.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90216 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-typeck.c')
| -rw-r--r-- | gcc/c-typeck.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index cf883b7d545..f9481f809a9 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -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); |

