aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2003-07-03 18:13:44 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2003-07-03 18:13:44 +0000
commit8d245821a2f3c28b71bf0958c90cf7fed6c9871d (patch)
tree7a1b74d528559e87eba7c56bcafd46a0a8dea100 /gcc/cp/class.c
parentee41cff421132bb2891a4ad51fae0f83ffcfe087 (diff)
downloadgcc-8d245821a2f3c28b71bf0958c90cf7fed6c9871d.zip
gcc-8d245821a2f3c28b71bf0958c90cf7fed6c9871d.tar.gz
gcc-8d245821a2f3c28b71bf0958c90cf7fed6c9871d.tar.bz2
call.c (build_scoped_method_call): Use convert_to_void.
* call.c (build_scoped_method_call): Use convert_to_void. (build_method_call): Likewise. * class.c (check_field_decls): Remove dead code. * cvt.c (convert_from_reference): Remove OFFSET_TYPE handling. * decl2.c (grok_array_decl): Remove dead code. (arg_assoc_type): Avoid relying on POINTER_TYPE over OFFSET_TYPE as pointer-to-member representation. * init.c (build_offset_ref): Tidy. (build_vec_delete_1): Use convert_to_void. * mangle.c (write_type): Avoid relying on POINTER_TYPE over OFFSET_TYPE as pointer-to-member representation. From-SVN: r68895
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 09688b6..978e844 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -3091,12 +3091,6 @@ check_field_decls (tree t, tree *access_decls,
type = build_pointer_type (type);
TREE_TYPE (x) = type;
}
- else if (TREE_CODE (type) == OFFSET_TYPE)
- {
- cp_error_at ("field `%D' invalidly declared offset type", x);
- type = build_pointer_type (type);
- TREE_TYPE (x) = type;
- }
if (type == error_mark_node)
continue;