What is wrong in the next macro ?

Yuri A. Belikov (belikov@sunhe.jinr.ru)
Wed, 25 Jun 1997 16:03:23 +0400


Dear colleagues !
What is wrong in the next macro :

#include <iostream.h>
#include <fstream.h>

void crash() {
ifstream file("_name_of_any_existent_file_");
}

When I try to execute it, "root" is aborted.
In more general case when an object of the ifstream class is created, I
can read correctly the file, but always when ~ifstream() is called,
"root" die...
Thank you.
Y.Belikov