aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/search.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2004-09-15 09:43:52 +0000
committerNathan Sidwell <nathan@codesourcery.com>2004-09-15 09:43:52 +0000
commitf68642e9d962dc4245049a59cea7ee3c07707d56 (patch)
tree1082845093d41243e0a6dc854bbb9503253f2fe1 /gcc/cp/search.c
parent2118bcbc1783d7abac30e700525d8a2878242da4 (diff)
* 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. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@87541 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r--gcc/cp/search.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index 906491ed02c..99a945352e1 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. */