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@gcc.gnu.org>2004-09-15 09:43:52 +0000
commit16ae29f1e617a0d0cc43d59b3082faf54bc436bb (patch)
tree1082845093d41243e0a6dc854bbb9503253f2fe1 /gcc/cp/search.c
parenta45f71f53768d5be6e5dac1906a3bd2bee19e38b (diff)
downloadgcc-16ae29f1e617a0d0cc43d59b3082faf54bc436bb.zip
gcc-16ae29f1e617a0d0cc43d59b3082faf54bc436bb.tar.gz
gcc-16ae29f1e617a0d0cc43d59b3082faf54bc436bb.tar.bz2
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
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 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. */