egcs-971008: fstream::open problem
unknown
dks2@cs.wustl.edu
Fri Oct 10 10:38:00 GMT 1997
On Linux 2.0.30, with libc 5.4.38 and the egcs libg++, the following
simple program causes a segmentation fault, whether or not the file
abc.def exists. It results in stack corruption.
#include <iostream.h>
#include <fstream.h>
void foo(char *name) {
ifstream def;
def.open(name, ios::in | ios::nocreate);
}
int main(int, char **) {
foo("abc.def");
return 0;
}
--
Daniel Schepler
More information about the Gcc-bugs
mailing list