This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20040] A new expression must check the access level of delete operator
- From: "amylaar at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Sep 2006 20:30:15 -0000
- Subject: [Bug c++/20040] A new expression must check the access level of delete operator
- References: <bug-20040-10087@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from amylaar at gcc dot gnu dot org 2006-09-08 20:30 -------
g++ also fails to check the accessibility of the destructor:
class C
{
private:
void operator delete (void *p) throw ();
};
void
f ()
{
C *p = new C;
}
class D
{
private:
~D ();
};
void
g ()
{
D *p = new D;
}
--
amylaar at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |joern dot rennecke at st dot
| |com
Known to fail|2.95.3 3.0.4 3.2.3 3.3.3 |2.95.3 3.0.4 3.2.3 3.3.3
|3.4.0 4.0.0 |3.4.0 4.0.0 4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20040