From f9bcb5472eb0a85ff3b42ecc5b46f7ba1a12e3a3 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Tue, 26 Sep 1995 16:43:13 -0400 Subject: [PATCH] (duplicate_decls): Turn off whining about virtual functions redeclared inline for now. From-SVN: r10402 --- gcc/cp/decl.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index 686f52a40843..d5b149f62e0c 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -2672,6 +2672,9 @@ duplicate_decls (newdecl, olddecl) if (DECL_THIS_INLINE (newdecl) && ! DECL_THIS_INLINE (olddecl)) { +#if 0 /* I think this will be correct, but it's really annoying. We should + fix the compiler to find vtables by indirection so it isn't + necessary. (jason 8/25/95) */ if (DECL_VINDEX (olddecl) && ! DECL_ABSTRACT_VIRTUAL_P (olddecl)) { cp_pedwarn ("virtual function `%#D' redeclared inline", @@ -2679,7 +2682,9 @@ duplicate_decls (newdecl, olddecl) cp_pedwarn_at ("previous non-inline declaration here", olddecl); } - else if (TREE_ADDRESSABLE (olddecl)) + else +#endif + if (TREE_ADDRESSABLE (olddecl)) { cp_pedwarn ("`%#D' was used before it was declared inline", newdecl); -- 2.43.5