OSDN Git Service

* decl.c (duplicate_decls): Make the newdecl virtual if the
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 1997 16:45:28 +0000 (16:45 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 18 Dec 1997 16:45:28 +0000 (16:45 +0000)
olddecl was, just as is done with other attributes of olddecl.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@17135 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/cp/ChangeLog
gcc/cp/decl.c

index ca47cfd..18e77ea 100644 (file)
@@ -1,3 +1,8 @@
+Thu Dec 18 14:51:50 1997  Mark Mitchell  <mmitchell@usa.net>
+
+       * decl.c (duplicate_decls): Make the newdecl virtual if the
+       olddecl was, just as is done with other attributes of olddecl.
+
 Thu Dec 18 14:43:19 1997  Jason Merrill  <jason@yorick.cygnus.com>
 
        * typeck.c (unary_complex_lvalue): Ignore op0 when taking the 
index c38445f..2f9f988 100644 (file)
@@ -2692,6 +2692,7 @@ duplicate_decls (newdecl, olddecl)
       DECL_STATIC_CONSTRUCTOR (newdecl) |= DECL_STATIC_CONSTRUCTOR (olddecl);
       DECL_STATIC_DESTRUCTOR (newdecl) |= DECL_STATIC_DESTRUCTOR (olddecl);
       DECL_ABSTRACT_VIRTUAL_P (newdecl) |= DECL_ABSTRACT_VIRTUAL_P (olddecl);
+      DECL_VIRTUAL_P (newdecl) |= DECL_VIRTUAL_P (olddecl);
     }
 
   /* Deal with C++: must preserve virtual function table size.  */