This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11339] cannot instantiate class derived from base with public virtual destructor and private operator delete
- From: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Jun 2003 14:06:59 -0000
- Subject: [Bug c++/11339] cannot instantiate class derived from base with public virtual destructor and private operator delete
- References: <20030626212928.11339.pbrannan@atdesk.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11339
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
------- Additional Comments From bangerth at dealii dot org 2003-06-30 14:06 -------
Volker Reichelt kindly did the work for me and notified me of clause
12.4/11 of the standard, which reads
At the point of definition of a virtual destructor, non-placement
operator delete shall be looked up in the scope of the destructor's
class, and if found shall be accessible and unambiguous.
This is not the case in your example, so gcc is right to reject it.
W.