public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/27519]  New: Another's class destructor name
@ 2006-05-09 15:52 zvonsully at gmail dot com
  2006-05-09 18:34 ` [Bug c++/27519] " fang at csl dot cornell dot edu
  2006-05-10  8:06 ` rguenth at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: zvonsully at gmail dot com @ 2006-05-09 15:52 UTC (permalink / raw)
  To: gcc-bugs

if u have 2 classes defined as:

class TPoints
        {
        TPoints(const TPoints&);
        TPoints& operator=(const TPoints&);
        friend class TPoligon;
        public:

        TPoints::TPoints(){}
        virtual ~TPoints();

        };

class TPoligon: public TPoints
        {
        TPoligon(const TPoligon&);//not impl
        TPoligon& operator=(const TPoligon&);//not impl

        public:

        TPoligon(){}
        virtual ~TPoligon();
        };

//and the functions
TPoints::~TPoligon()// !!!!! <-------- class TPoints and destructor of TPoligon
        {
        }

TPoints::~TPoints(){}

TPoligon::~TPoligon(){}

int main(){}


the code above compiles without warning!


-- 
           Summary: Another's class destructor name
           Product: gcc
           Version: 4.0.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zvonsully at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27519


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-10  8:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-09 15:52 [Bug c++/27519] New: Another's class destructor name zvonsully at gmail dot com
2006-05-09 18:34 ` [Bug c++/27519] " fang at csl dot cornell dot edu
2006-05-10  8:06 ` rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).