[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#4011: simple c++ program segfaults



On 4 Aug 1996, Rob Browning wrote:

> Is this actually a bug?  I don't think you are supposed to call a
> destructor directly in this situation.  I would assume that the crash
> comes when the destructor is called a second time when the program
> exits main.

It is legal to explicitly call a destructor but rarely needed.  It
certainly makes no sense in this case, as the destructor will be called
twice.

The question, it seems, is what was the programmer trying to do?


Guy



Reply to: