libio problems with egcs i86 linux 970917
Finn Arne Gangstad
finnag@guardian.no
Fri Sep 19 05:44:00 GMT 1997
gcc version egcs-2.90.08 970917 (gcc2-970802 experimental)
i686-pc-linux-gnulibc1, libc 5.4.17:
tst2.cc:
---
#include <fstream.h>
#include <stdio.h>
int
main()
{
printf("If you see this, you don't have a problem!\n");
#ifdef EXPOSE_BUG
ifstream a;
#endif
}
---
lucifer:finnag:(540)$ c++ -o -DEXPOSE_BUG tst2 tst2.cc
lucifer:finnag:(541)$ ./tst2
Segmentation fault
lucifer:finnag:(542)$ c++ -o tst2 tst2.cc
lucifer:finnag:(543)$ ./tst2
If you see this, you don't have a problem!
It is interesting to note that it is printf that segfaults, not
"ifstream a;".
- Finn Arne
More information about the Gcc-bugs
mailing list