(duplicate_decls): Turn off whining about virtual functions redeclared
authorJason Merrill <jason@phydeaux.cygnus.com>
Tue, 26 Sep 1995 20:43:13 +0000 (16:43 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 26 Sep 1995 20:43:13 +0000 (16:43 -0400)
inline for now.

From-SVN: r10402

gcc/cp/decl.c

index 686f52a40843df58211239c467f81154b9200db5..d5b149f62e0cb6586956eb005d0db3f7204e42e1 100644 (file)
@@ -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);