This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15505] pure virtual destructor not overloaded, but accepted
- From: "b dot perschbacher at att dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 May 2004 22:25:30 -0000
- Subject: [Bug c++/15505] pure virtual destructor not overloaded, but accepted
- References: <20040517222115.15505.b.perschbacher@att.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From b dot perschbacher at att dot net 2004-05-17 22:25 -------
Forgot to mention the compile command is:
g++ bug.C
and here is the output from the compiler:
/tmp/cc56si4w.o(.gnu.linkonce.t._ZN3subD1Ev+0x16): In function `sub::~sub
[in-charge]()':
: undefined reference to `base::~base [not-in-charge]()'
/tmp/cc56si4w.o(.gnu.linkonce.t._ZN3subC1Ev+0x64): In function
`sub::sub[in-charge]()':
: undefined reference to `base::~base [not-in-charge]()'
/tmp/cc56si4w.o(.gnu.linkonce.t._ZN4sub2D1Ev+0x16): In function `sub2::~sub2
[in-charge]()':
: undefined reference to `base::~base [not-in-charge]()'
/tmp/cc56si4w.o(.gnu.linkonce.t._ZN4sub2C1Ev+0x72): In function
`sub2::sub2[in-charge]()':
: undefined reference to `base::~base [not-in-charge]()'
/tmp/cc56si4w.o(.gnu.linkonce.t._ZN3subD0Ev+0x16): In function `sub::~sub
[in-charge deleting]()':
: undefined reference to `base::~base [not-in-charge]()'
/tmp/cc56si4w.o(.gnu.linkonce.t._ZN4sub2D0Ev+0x16): more undefined references to
`base::~base [not-in-charge]()' follow
collect2: ld returned 1 exit status
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15505