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++/20040] A new expression must check the access level of delete operator



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


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