diff options
author | Mark Mitchell <mmitchell@usa.net> | 1997-12-18 16:45:28 +0000 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1997-12-18 11:45:28 -0500 |
commit | 864b83b9bbc5145cde94d530f3e943301319f4f1 (patch) | |
tree | c888e31f20165de285d5601884cf01c488e28680 | |
parent | 4cac94646f66267096686d2c1116466e19ad1784 (diff) | |
download | gcc-864b83b9bbc5145cde94d530f3e943301319f4f1.zip gcc-864b83b9bbc5145cde94d530f3e943301319f4f1.tar.gz gcc-864b83b9bbc5145cde94d530f3e943301319f4f1.tar.bz2 |
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
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/decl.c | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ca47cfd..18e77ea 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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 diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index c38445f..2f9f988 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. */ |