From 16ae29f1e617a0d0cc43d59b3082faf54bc436bb Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Wed, 15 Sep 2004 09:43:52 +0000 Subject: cp-tree.h (struct lang_decl_flags): Remove needs_final_overrider. * cp-tree.h (struct lang_decl_flags): Remove needs_final_overrider. (DECL_NEEDS_FINAL_OVERRIDER_P): Remove. * decl.c (duplicate_decls): Do not copy DECL_NEEDS_FINAL_OVERRIDER_P. * class.c (finish_struct_bits): Correct comment about CLASSTYPE_PURE_VIRTUALS. * search.c (get_pure_virtuals): Remove useless loop. From-SVN: r87541 --- gcc/cp/search.c | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'gcc/cp/search.c') diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 906491e..99a9453 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -1908,20 +1908,6 @@ get_pure_virtuals (tree type) /* Put the pure virtuals in dfs order. */ CLASSTYPE_PURE_VIRTUALS (type) = nreverse (CLASSTYPE_PURE_VIRTUALS (type)); - - for (vbases = CLASSTYPE_VBASECLASSES (type), ix = 0; - VEC_iterate (tree, vbases, ix, binfo); ix++) - { - tree virtuals; - - for (virtuals = BINFO_VIRTUALS (binfo); virtuals; - virtuals = TREE_CHAIN (virtuals)) - { - tree base_fndecl = BV_FN (virtuals); - if (DECL_NEEDS_FINAL_OVERRIDER_P (base_fndecl)) - error ("`%#D' needs a final overrider", base_fndecl); - } - } } /* DEPTH-FIRST SEARCH ROUTINES. */ -- cgit v1.1