re PR c++/47666 (ICE in dfs_walk_once)
authorDodji Seketeli <dodji@redhat.com>
Tue, 22 Feb 2011 19:53:13 +0000 (19:53 +0000)
committerDodji Seketeli <dodji@gcc.gnu.org>
Tue, 22 Feb 2011 19:53:13 +0000 (20:53 +0100)
commitca2409f9f23194cbb8b22c59796b48049975aae4
tree36ba2eb56446cbf56437f62ff1873e357f6efa71
parent4597541a6819f7c9248acd41c319498fcd364572
re PR c++/47666 (ICE in dfs_walk_once)

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.

From-SVN: r170413
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/inherit/virtual7.C [new file with mode: 0644]