This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c++/25826] New: "pure virtual" destructors accepted by GCC, but cause link failure
- From: Gabriel Dos Reis <gdr at cs dot tamu dot edu>
- To: gcc-bugzilla at gcc dot gnu dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jan 2006 15:13:29 -0600
- Subject: Re: [Bug c++/25826] New: "pure virtual" destructors accepted by GCC, but cause link failure
- References: <bug-25826-6477@http.gcc.gnu.org/bugzilla/>
"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