[Bug c++/27519] Another's class destructor name
fang at csl dot cornell dot edu
gcc-bugzilla@gcc.gnu.org
Tue May 9 18:34:00 GMT 2006
------- Comment #1 from fang at csl dot cornell dot edu 2006-05-09 18:34 -------
With the following reduced case:
//--------->8 snip 8<-------------
class TPoints {
public:
~TPoints();
};
class TPoligon: public TPoints {
public:
~TPoligon();
};
TPoints::~TPoligon() { }
TPoints::~TPoints(){}
//--------->8 snip 8<------------
I get this misleading diagnostic with 4.0.1 (don't have 4.0.3 handy):
dtor.cc:13: error: redefinition of 'TPoints::~TPoints()'
dtor.cc:11: error: 'TPoints::~TPoints()' previously defined here
With 4.1, I get:
dtor.cc:11: error: declaration of '~TPoligon' as member of 'TPoints'
--
fang at csl dot cornell dot edu changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fang at csl dot cornell dot
| |edu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27519
More information about the Gcc-bugs
mailing list