This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]