[Bug c++/11339] cannot instantiate class derived from base with public virtual destructor and private operator delete
bangerth at dealii dot org
gcc-bugzilla@gcc.gnu.org
Mon Jun 30 14:07:00 GMT 2003
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.
More information about the Gcc-bugs
mailing list