[Bug c++/25826] "pure virtual" destructors accepted by GCC, but cause link failure

gdr at cs dot tamu dot edu gcc-bugzilla@gcc.gnu.org
Tue Jan 17 21:11:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list