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
+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
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. */