This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/25826] "pure virtual" destructors accepted by GCC, but cause link failure
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2006 21:11:37 -0000
- Subject: [Bug c++/25826] "pure virtual" destructors accepted by GCC, but cause link failure
- References: <bug-25826-6477@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from gdr at cs dot tamu dot edu 2006-01-17 21:11 -------
Subject: Re: New: "pure virtual" destructors accepted by GCC, but cause link
failure
"lloyd at randombit dot net" <gcc-bugzilla@gcc.gnu.org> writes:
| The following code:
|
| class A
| {
| public:
| virtual ~A() = 0;
You still need to *define* the destructor. See §12.4/7.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25826