OSDN Git Service

Fix PR c++/47666
authordodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Feb 2011 19:53:13 +0000 (19:53 +0000)
committerdodji <dodji@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Feb 2011 19:53:13 +0000 (19:53 +0000)
commit052906ac832b8fd080b8c1ef85db63ecca4fdc56
tree36ba2eb56446cbf56437f62ff1873e357f6efa71
parent7840e94fe615b0c73ab4b3eed3a2daf164a1f881
Fix PR c++/47666

gcc/cp/

PR c++/47666
* class.c (dfs_declare_virt_assop_and_dtor)
(declare_virt_assop_and_dtor): New static functions.
(add_implicitly_declared_members): Use
declare_virt_assop_and_dtor.

gcc/testsuite/

PR c++/47666
* g++.dg/inherit/virtual7.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170413 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/virtual7.C [new file with mode: 0644]