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

Gabriel Dos Reis gdr@cs.tamu.edu
Tue Jan 17 21:11:00 GMT 2006


"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



More information about the Gcc-bugs mailing list