From: Mark Mitchell Date: Thu, 18 Dec 1997 16:45:28 +0000 (+0000) Subject: decl.c (duplicate_decls): Make the newdecl virtual if the olddecl was... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=864b83b9bbc5145cde94d530f3e943301319f4f1;p=gcc.git decl.c (duplicate_decls): Make the newdecl virtual if the olddecl was... * decl.c (duplicate_decls): Make the newdecl virtual if the olddecl was, just as is done with other attributes of olddecl. From-SVN: r17135 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ca47cfdbb9e..18e77ea58cb 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +Thu Dec 18 14:51:50 1997 Mark Mitchell + + * 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 * typeck.c (unary_complex_lvalue): Ignore op0 when taking the diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index c38445f64c7..2f9f988645c 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -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. */