Bug#4011: simple c++ program segfaults

1996-08-07 Thread Brian C. White
> > 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.

Bug#4011: simple c++ program segfaults

1996-08-07 Thread Herbert Xu
Guy Maor wrote: > > 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? Well I haven't got a clue on that one as I didn't write t

Bug#4011: simple c++ program segfaults

1996-08-07 Thread Guy Maor
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 destru

Bug#4011: simple c++ program segfaults

1996-08-03 Thread Herbert Xu
Package: gcc Version: 2.7.2-8 A recent posting on comp.os.linux.apps by [EMAIL PROTECTED] (Dirk Alboth) can be reproduced on my Debian system. In fact, it seems to occur on a Sun with g++ too. Here's a modified version of the program: -- #include void main( int argc, char **argv) { ofstream