This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bad destructor results in Internal error in snapshot 19980803
- To: egcs-bugs at cygnus dot com
- Subject: Bad destructor results in Internal error in snapshot 19980803
- From: Rolf Fokkens <rolf at flits102-126 dot flits dot rug dot nl>
- Date: Sat, 15 Aug 1998 13:40:40 +0000
The following piece of code was accepted by egcs-1.0.2 though it has an
error in the destructor. The lastest ecgs-snapshot 19980803 (on Alpha)
detects the error but reports an internal error and urges me to send
this to the mailing-list.
class A {
int Dummy;
public:
A (int pDummy);
~A (void);
};
A::A (int pDummy)
{
Dummy = pDummy;
};
A::~A (int pDummy)
{
};